[ https://issues.apache.org/jira/browse/LUCENE-2053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12778139#action_12778139 ]
Michael McCandless commented on LUCENE-2053: -------------------------------------------- OK I'll commit shortly. Basically, with the patch the test is now more careful: the main thread issues the interrupt, and then waits for the child thread to confirm it handled the exception. This way the main thread won't send another interrupt until the child thread is done handling the last one. > When thread is interrupted we should throw a clear exception > ------------------------------------------------------------ > > Key: LUCENE-2053 > URL: https://issues.apache.org/jira/browse/LUCENE-2053 > Project: Lucene - Java > Issue Type: Improvement > Components: Index > Reporter: Michael McCandless > Assignee: Michael McCandless > Priority: Minor > Fix For: 3.0 > > Attachments: LUCENE-2053.patch, LUCENE-2053.patch > > > This is the 3.0 followon from LUCENE-1573. We should throw a dedicated > exception, not just RuntimeException. > Recent discussion from java-dev "Thread.interrupt()" subject: > http://www.lucidimagination.com/search/document/8423f9f0b085034e/thread_interrupt -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org