nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From olegz <>
Subject [GitHub] nifi pull request: NIFI-1099 fixed the handling of InterruptedExce...
Date Fri, 06 Nov 2015 14:48:21 GMT
Github user olegz commented on the pull request:
    I just want to make sure that we are all on the same page; _repeat the interrupt_ in the
context of _Thread.interrupt()_ simply implies communication of something that have already
happened and is not he same as re-throwing exception. Hence my point about that being safe.

    For cases where one really wants to ignore the interrupt especially where ```Thread.sleep(..)```
is used (a whole other topic), we can simply use ```LockSupport.parkNanos(..)```.  Any interrupt
will not turn into exception making user responsible to query the active thread periodically
and check if it has been interrupted ```Thread.isInterrupted()```.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message