[ 
https://issues.apache.org/jira/browse/LUCENENET-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12779191#action_12779191
 ] 

Michael Garski commented on LUCENENET-257:
------------------------------------------

No worries Andrei :)

I believe I've determined why the test is failing, but I'm not sure as to what 
is causing it yet.  It appears as if in Lucene.Net, the index has 10 segments 
while the Java version has only one segment in it's index, so the root issue is 
somewhere inside when the index is created to set up the state of the index 
before creating the CheckIndex instance and validating it's state.

> TestCheckIndex.TestDeletedDocs 
> -------------------------------
>
>                 Key: LUCENENET-257
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-257
>             Project: Lucene.Net
>          Issue Type: Bug
>            Reporter: Andrei Iliev
>            Assignee: Digy
>
> Setting writer.SetMaxBufferedDocs(2) couse flushing buffers after adding 
> every 2 docs. That  results in total 10 segments in the index and failing 
> TestDeletedDocs (test case assumes that there is only 1 segment file).  So 
> question arise:
> 1) does performing a flush has to start a new segment file?
> 2) if so, in order  to  run TestDeletedDocs smoothly either change  
> writer.SetMaxBufferedDocs(2) to, say,    writer.SetMaxBufferedDocs(20) or 
> call writer.optimize(1) before closing writer.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to