[
https://issues.apache.org/jira/browse/LUCENE-3188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13047900#comment-13047900
]
Steven Rowe commented on LUCENE-3188:
-------------------------------------
Mike McCandless reviewed for me; see [the IRC
log|http://colabti.org/irclogger/irclogger_log/lucene-dev?date=2011-06-11#l45].
In summary: This is a bug, and the fix is appropriate. The problem is that the
split index is created with an incorrect next-segment-name counter (always 0).
A simpler fix than Ivan's would be to copy the counter over from the source
index. Also, it would be good to include a check for this problem to the
CheckIndex tool:
bq. mikemccand: ie it'd just verify sis.counter is > all segs in the index
I'll make a patch with these changes.
> The class from cotrub directory org.apache.lucene.index.IndexSplitter creates
> a non correct index
> -------------------------------------------------------------------------------------------------
>
> Key: LUCENE-3188
> URL: https://issues.apache.org/jira/browse/LUCENE-3188
> Project: Lucene - Java
> Issue Type: Bug
> Components: modules/other
> Affects Versions: 3.0, 3.2
> Environment: Bug is present for all environments.
> I used in this case - Windows Server 2003, Java Hot Spot Virtual Machine.
> Reporter: Ivan Dimitrov Vasilev
> Assignee: Steven Rowe
> Priority: Minor
> Fix For: 3.3, 4.0
>
> Attachments: IndexSplitter.java, LUCENE-3188.patch,
> LUCENE-3188.patch, TestIndexSplitter.java
>
>
> When using the method IndexSplitter.split(File destDir, String[] segs) from
> the Lucene cotrib directory (contrib/misc/src/java/org/apache/lucene/index)
> it creates an index with segments descriptor file with wrong data. Namely
> wrong is the number representing the name of segment that would be created
> next in this index.
> If some of the segments of the index already has this name this results
> either to impossibility to create new segment or in crating of an corrupted
> segment.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]