[ https://issues.apache.org/jira/browse/LUCENE-1509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless resolved LUCENE-1509. ---------------------------------------- Resolution: Fixed Committed revision 731747. > IndexCommit.getFileNames() should not return dups > ------------------------------------------------- > > Key: LUCENE-1509 > URL: https://issues.apache.org/jira/browse/LUCENE-1509 > Project: Lucene - Java > Issue Type: Bug > Components: Index > Affects Versions: 2.4, 2.9 > Reporter: Michael McCandless > Assignee: Michael McCandless > Priority: Minor > Fix For: 2.9 > > Attachments: LUCENE-1509.patch > > > If the index was created with autoCommit false, and more than 1 > segment was flushed during the IndexWriter session, then the shared > doc-store files are incorrectly duplicated in > IndexCommit.getFileNames(). This is because that method is walking > through each SegmentInfo, appending its files to a list. Since > multiple SegmentInfo's may share the doc store files, this causes dups. > To fix this, I've added a SegmentInfos.files(...) method, and > refactored all places that were computing their files one SegmentInfo > at a time to use this new method instead. -- 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