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

Raimund Merkert commented on LUCENE-4699:
-----------------------------------------

Thanks for the prompt response. I just wanted to confirm that you haven't 
really seen this error before. Now I can go off and try to investigate a little 
bit more.

As I mentioned there's a very good chance that I screwed something up in my 
unit test, because when the test is complete the temporary folder with all the 
indexes is removed.  The test actually starts a server and then shuts it down, 
but it might resume and delete the folder before the shutdown is complete.

                
> 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