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

Michael McCandless commented on LUCENE-4699:
--------------------------------------------

Hmm ... this is quite bad.  It means that a file that is referenced by the 
current commit (according to SegmentInfos) is in fact not present.

Can you post your test?

If you run with assertions disabled do you not hit an exception in Lucene?  
This is a rather catastrophic failure so you should be hitting some exception 
later on (possibly when trying to open a reader against this commit point).
                
> AssertionError triggered in IndexWriter.filesExist
> --------------------------------------------------
>
>                 Key: LUCENE-4699
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4699
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/index
>    Affects Versions: 4.0
>            Reporter: Raimund Merkert
>
> Occasionally I get this AssertionError in my unit tests:
> java.lang.AssertionError: file _0_Lucene40_0.tim does not exist
>       at org.apache.lucene.index.IndexWriter.filesExist(IndexWriter.java:3981)
>       at 
> org.apache.lucene.index.IndexWriter.startCommit(IndexWriter.java:4047)
>       at 
> org.apache.lucene.index.IndexWriter.prepareCommit(IndexWriter.java:2800)
>       at 
> org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:2875)
>       at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:2855)
>       at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:2839)
> I'm not sure what's supposed to trigger this. To fix this I just rerun my 
> tests and the error is gone.
> I believe it's probably caused by something I'm doing wrong, but I was hoping 
> to get some kind of declared exception and not an assertion error.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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