it seems like there is a race in IW#closeInternal() that allows a incoming thread to index a document into a DWPT that was empty (0 docs) when the "supposed to be" last flush kicked in. I will commit a fix for it in a minute. I added an assert which I tripped immediately while I wasn't able to reproduce the error. Let randomness take it from here!
simon On Sun, May 29, 2011 at 1:12 PM, Apache Jenkins Server <hud...@hudson.apache.org> wrote: > Build: https://builds.apache.org/hudson/job/Lucene-Solr-tests-only-trunk/8497/ > > 1 tests failed. > REGRESSION: > org.apache.lucene.index.TestIndexWriterWithThreads.testCloseWithThreads > > Error Message: > MockDirectoryWrapper: cannot close: there are still open files: {_s.fdt=1, > _s.tvx=1, _s.tvf=1, _s.tvd=1, _s.fdx=1} > > Stack Trace: > java.lang.RuntimeException: MockDirectoryWrapper: cannot close: there are > still open files: {_s.fdt=1, _s.tvx=1, _s.tvf=1, _s.tvd=1, _s.fdx=1} > at > org.apache.lucene.store.MockDirectoryWrapper.close(MockDirectoryWrapper.java:461) > at > org.apache.lucene.index.TestIndexWriterWithThreads.testCloseWithThreads(TestIndexWriterWithThreads.java:214) > at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1334) > at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1252) > Caused by: java.lang.RuntimeException: unclosed IndexOutput: _s.tvx > at > org.apache.lucene.store.MockDirectoryWrapper.addFileHandle(MockDirectoryWrapper.java:400) > at > org.apache.lucene.store.MockDirectoryWrapper.createOutput(MockDirectoryWrapper.java:376) > at > org.apache.lucene.index.TermVectorsTermsWriter.initTermVectorsWriter(TermVectorsTermsWriter.java:96) > at > org.apache.lucene.index.TermVectorsTermsWriter.finishDocument(TermVectorsTermsWriter.java:123) > at org.apache.lucene.index.TermsHash.finishDocument(TermsHash.java:138) > at > org.apache.lucene.index.DocInverter.finishDocument(DocInverter.java:95) > at > org.apache.lucene.index.DocFieldProcessor.finishDocument(DocFieldProcessor.java:285) > at > org.apache.lucene.index.DocumentsWriterPerThread.updateDocument(DocumentsWriterPerThread.java:246) > at > org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:372) > at > org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1469) > at > org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1441) > at > org.apache.lucene.index.TestIndexWriterWithThreads$IndexerThread.run(TestIndexWriterWithThreads.java:65) > > > > > Build Log (for compile errors): > [...truncated 3071 lines...] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org > For additional commands, e-mail: dev-h...@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org