[ 
https://issues.apache.org/jira/browse/CASSANDRA-905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jonathan Ellis resolved CASSANDRA-905.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.7
         Assignee: Michael Spiegel

committed to trunk, thanks!

> improve py_stress termination condition
> ---------------------------------------
>
>                 Key: CASSANDRA-905
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-905
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Contrib
>    Affects Versions: 0.6
>            Reporter: Michael Spiegel
>            Assignee: Michael Spiegel
>            Priority: Minor
>             Fix For: 0.7
>
>         Attachments: CASSANDRA-905.patch
>
>
> Currently the stress.py 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.

Reply via email to