You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org> on 2009/01/06 15:00:45 UTC
[jira] Commented: (LUCENE-1509) IndexCommit.getFileNames() should
not return dups
[ https://issues.apache.org/jira/browse/LUCENE-1509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12661143#action_12661143 ]
Shalin Shekhar Mangar commented on LUCENE-1509:
-----------------------------------------------
Thanks Michael!
> 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org