[
https://issues.apache.org/jira/browse/LUCENE-3150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Smiley updated LUCENE-3150:
---------------------------------
Fix Version/s: (was: 4.7)
4.8
> Wherever we catch & suppress Throwable we should not suppress
> ThreadInterruptedException
> ----------------------------------------------------------------------------------------
>
> Key: LUCENE-3150
> URL: https://issues.apache.org/jira/browse/LUCENE-3150
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Michael McCandless
> Priority: Minor
> Fix For: 4.8
>
> Attachments: LUCENE-3150.patch
>
>
> In various places we catch Throwable and suppress it, usually in exception
> handlers where we want to just throw the first exc we had hit.
> But this is dangerous for a thread interrupt since it means we can swallow &
> ignore the interrupt.
> We should at least catch the interrupt & restore the interrupt bit, if we
> can't rethrow it.
> One example is in SegmentInfos where we write the segments.gen file... there
> are many other examples in SegmentInfos too.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]