[ https://issues.apache.org/jira/browse/LUCENE-1097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless resolved LUCENE-1097. ---------------------------------------- Resolution: Fixed I just committed this! > IndexWriter.close(false) does not actually stop background merge threads > ------------------------------------------------------------------------ > > Key: LUCENE-1097 > URL: https://issues.apache.org/jira/browse/LUCENE-1097 > Project: Lucene - Java > Issue Type: Bug > Affects Versions: 2.3 > Reporter: Michael McCandless > Assignee: Michael McCandless > Priority: Minor > Fix For: 2.3 > > Attachments: LUCENE-1097.patch > > > Right now when you close(false), IndexWriter marks any running merges > as aborted but then does not wait for these merges to finish. This > can cause problems because those threads still hold files open, so, > someone might think they can call close(false) and then (say) delete > all files from that directory, which would fail on Windows. > Instead, close(false) should notify each running merge that it has > been aborted, and not return until all running merges are done. Then, > SegmentMerger should periodically check whether it has been aborted > and stop if so. -- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]