[
https://issues.apache.org/jira/browse/LUCENE-4699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13558748#comment-13558748
]
Michael McCandless commented on LUCENE-4699:
--------------------------------------------
OK, deleting files from the index while IndexWriter is committing would
definitely explain this assert trip ... good luck bug hunting ;)
> 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]