lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Busch <busch...@gmail.com>
Subject TestIndexWriter failure
Date Sat, 01 Aug 2009 21:49:05 GMT
While running 'ant test' I just got this failure (on Mac OS 10.5.7). 
Even worse, the next time I ran it the test passed, so this might be 
hard to reproduce.
I haven't tried yet to find out what caused this.

     [junit] Exception in thread "Lucene Merge Thread #1" 
org.apache.lucene.index.MergePolicy$MergeException: 
org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed
     [junit]     at 
org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:351)
     [junit]     at 
org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:315)
     [junit] Caused by: org.apache.lucene.store.AlreadyClosedException: 
this IndexWriter is closed
     [junit]     at 
org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:791)
     [junit]     at 
org.apache.lucene.index.IndexWriter.getDirectory(IndexWriter.java:2303)
     [junit]     at 
org.apache.lucene.index.SegmentMerger.<init>(SegmentMerger.java:88)
     [junit]     at 
org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4942)
     [junit]     at 
org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:4598)
     [junit]     at 
org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:235)
     [junit]     at 
org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:291)
     [junit] Exception in thread "Lucene Merge Thread #2" 
org.apache.lucene.index.MergePolicy$MergeException: 
org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed
     [junit]     at 
org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:351)
     [junit]     at 
org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:315)
     [junit] Caused by: org.apache.lucene.store.AlreadyClosedException: 
this IndexWriter is closed
     [junit]     at 
org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:791)
     [junit]     at 
org.apache.lucene.index.IndexWriter.getDirectory(IndexWriter.java:2303)
     [junit]     at 
org.apache.lucene.index.SegmentMerger.<init>(SegmentMerger.java:88)
     [junit]     at 
org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4942)
     [junit]     at 
org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:4598)
     [junit]     at 
org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:235)
     [junit]     at 
org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:291)
     [junit] Exception in thread "Lucene Merge Thread #3" 
org.apache.lucene.index.MergePolicy$MergeException: 
org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed
     [junit]     at 
org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:351)
     [junit]     at 
org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:315)
     [junit] Caused by: org.apache.lucene.store.AlreadyClosedException: 
this IndexWriter is closed
     [junit]     at 
org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:791)
     [junit]     at 
org.apache.lucene.index.IndexWriter.getDirectory(IndexWriter.java:2303)
     [junit]     at 
org.apache.lucene.index.SegmentMerger.<init>(SegmentMerger.java:88)
     [junit]     at 
org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4942)
     [junit]     at 
org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:4598)
     [junit]     at 
org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:235)
     [junit]     at 
org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:291)
     [junit] Exception in thread "Lucene Merge Thread #4" 
org.apache.lucene.index.MergePolicy$MergeException: 
org.apache.lucene.store.AlreadyClosedException: this IndexWriter is closed
     [junit]     at 
org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:351)
     [junit]     at 
org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:315)
     [junit] Caused by: org.apache.lucene.store.AlreadyClosedException: 
this IndexWriter is closed
     [junit]     at 
org.apache.lucene.index.IndexWriter.ensureOpen(IndexWriter.java:791)
     [junit]     at 
org.apache.lucene.index.IndexWriter.getDirectory(IndexWriter.java:2303)
     [junit]     at 
org.apache.lucene.index.SegmentMerger.<init>(SegmentMerger.java:88)
     [junit]     at 
org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:4942)
     [junit]     at 
org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:4598)
     [junit]     at 
org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:235)
     [junit]     at 
org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:291)
     [junit] ------------- ---------------- ---------------
     [junit] Testcase: 
testNoWaitClose(org.apache.lucene.index.TestIndexWriter):    FAILED
     [junit] ConcurrentMergeScheduler hit unhandled exceptions
     [junit] junit.framework.AssertionFailedError: 
ConcurrentMergeScheduler hit unhandled exceptions
     [junit]     at 
org.apache.lucene.util.LuceneTestCase.tearDown(LuceneTestCase.java:54)
     [junit] Test org.apache.lucene.index.TestIndexWriter FAILED

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message