You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Bill Havanki (JIRA)" <ji...@apache.org> on 2014/02/10 21:18:19 UTC
[jira] [Commented] (ACCUMULO-2346) Make UtilWaitThread.sleep()
reset interrupt status
[ https://issues.apache.org/jira/browse/ACCUMULO-2346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13896956#comment-13896956 ]
Bill Havanki commented on ACCUMULO-2346:
----------------------------------------
I'd be happier if this method were abandoned and its users dealt with the {{InterruptedException}} properly, especially by gracefully ending threads. I recall discussion on this across the community in the past but haven't found a record of it yet.
> Make UtilWaitThread.sleep() reset interrupt status
> --------------------------------------------------
>
> Key: ACCUMULO-2346
> URL: https://issues.apache.org/jira/browse/ACCUMULO-2346
> Project: Accumulo
> Issue Type: Bug
> Reporter: Keith Turner
> Fix For: 1.7.0
>
>
> Look into making UtilWaitThread.sleep() reset the interrupt status by calling {{Thread.currentThread().interrupt()}}. This seems like a good thing to do, it allows code that does not want to deal with the interrupt to pass it on. The question is, does doing this cause new bugs?
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)