cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-5557) Correctly handle interruptions of Thread.sleep()
Date Sat, 11 May 2013 21:01:16 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-5557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13655369#comment-13655369
] 

Jonathan Ellis commented on CASSANDRA-5557:
-------------------------------------------

Fine w/ using sleepUninterruptibly.  Not fine w/ up-propagating Exception.
                
> Correctly handle interruptions of Thread.sleep()
> ------------------------------------------------
>
>                 Key: CASSANDRA-5557
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5557
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Mikhail Mazursky
>            Priority: Minor
>         Attachments: trunk-5557.txt
>
>
> There is no need to throw assertion errors or runtime exceptions when Thread.sleep()
is interrupted - code can just ignore interruption (and that is correct behaviour). Also this
eliminates boilerplate code. See attached patch.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message