[ 
https://issues.apache.org/jira/browse/LUCENE-3188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13047279#comment-13047279
 ] 

Ivan Dimitrov Vasilev commented on LUCENE-3188:
-----------------------------------------------

Hi Steve,

I attached the patch to this issue as required from Apache (or at least I think 
so :) ).
I do not have lot of time now to read in depth Apache docs about the procedures 
when contributing but I saw on the wiki that I should provide also test cases 
that show the bug and they should be in form of unit tests. I provided a test 
case that is not in JUnit form but still works. As I saw when submitted patch 
the tests do not need granting license so you can use it. I do not have much 
time now because we are before release and this was one of the bugs that I 
should fix (and I did it).

I guess you are the one who discovered this Splitter. Thank you very much for 
this you saved me a lot of hard work because in our previous releases we used a 
class that generated segments descriptor file out of given segments and looking 
for content of this file was very difficult.

> 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
>            Priority: Minor
>             Fix For: 3.0, 3.2
>
>         Attachments: IndexSplitter.java, 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]

Reply via email to