cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Williams (JIRA)" <>
Subject [jira] Commented: (CASSANDRA-905) improve py_stress termination condition
Date Fri, 19 Mar 2010 18:04:27 GMT


Brandon Williams commented on CASSANDRA-905:


> improve py_stress termination condition
> ---------------------------------------
>                 Key: CASSANDRA-905
>                 URL:
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Contrib
>    Affects Versions: 0.6
>            Reporter: Michael Spiegel
>            Priority: Minor
>         Attachments: CASSANDRA-905.patch
> Currently the script will sleep every (progress_interval) seconds and then
check for termination.  This can be confusing when trying to accurately use timing statistics
based on the execution duration of the script.  For example, if progress interval is 10 seconds
then the script is guaranteed to terminate after N seconds, where N is some multiple of 10.
 I've attached a patch where the script sleeps every 0.1 seconds, and does a poll to see if
the correct interval has passed in order to print information.  The patch also ensures that
statistics will be reported at the completion of the worker threads.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message