Hmm -- I suspect TestIndexWriter.testNoWaitClose hit an exc, which caused it not to close the dir, but the code that catches this in LuceneTestCase fails to show that root cause?
I think we should disable the "dir/IndexInput/Output not closed" checking if the test hit an exc? Ahh so here is the root cause: http://gperf.ath.cx:9999/hudson/job/Solcene/1704/testReport/junit/org.apache.lucene.index/TestIndexWriter/testNoWaitClose/ java.io.FileNotFoundException: /home/mark/hudson_solcene/jobs/Solcene/workspace/solcene/lucene/build/test/7/test4946766365764846424tmp/_46.fnm (Too many open files) at java.io.RandomAccessFile.open(Native Method) at java.io.RandomAccessFile.<init>(RandomAccessFile.java:233) at org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput$Descriptor.<init>(SimpleFSDirectory.java:69) at org.apache.lucene.store.SimpleFSDirectory$SimpleFSIndexInput.<init>(SimpleFSDirectory.java:90) at org.apache.lucene.store.SimpleFSDirectory.openInput(SimpleFSDirectory.java:56) at org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:351) at org.apache.lucene.store.MockDirectoryWrapper.openInput(MockDirectoryWrapper.java:299) at org.apache.lucene.index.FieldInfos.<init>(FieldInfos.java:69) at org.apache.lucene.index.SegmentReader$CoreReaders.<init>(SegmentReader.java:131) at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:536) at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:509) at org.apache.lucene.index.DirectoryReader.<init>(DirectoryReader.java:129) at org.apache.lucene.index.DirectoryReader$1.doBody(DirectoryReader.java:96) at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:630) at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:91) at org.apache.lucene.index.IndexReader.open(IndexReader.java:414) at org.apache.lucene.index.IndexReader.open(IndexReader.java:233) at org.apache.lucene.index.TestIndexWriter.testNoWaitClose(TestIndexWriter.java:2174) at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:805) at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:778) The test is quite awful -- creates index w/ maxBufferedDocs 2 and mergeFactor 100 and (randomly) CFS on/off. So it's not surprising when it gets FSDir that it'll run out of descriptors... We should fix this test to not use any of the FS dirs? Mike On Sun, Sep 19, 2010 at 8:55 PM, Mark Miller <markrmil...@gmail.com> wrote: > > Failed > > junit.framework.TestSuite.org.apache.lucene.index.TestIndexWriter (from > TestSuite) > > Failing for the past 1 build (Since #1704 ) > Took 0 ms. > add description > > Error Message > > directory of test was not closed, opened from: > org.apache.lucene.util.LuceneTestCase.newDirectory(LuceneTestCase.java:585) > > Stacktrace > > junit.framework.AssertionFailedError: directory of test was not closed, > opened from: > org.apache.lucene.util.LuceneTestCase.newDirectory(LuceneTestCase.java:585) > at > org.apache.lucene.util.LuceneTestCase.afterClassLuceneTestCaseJ4(LuceneTestCase.java:304) > > Standard Output > > NOTE: random codec of testcase 'testNoWaitClose' was: > MockFixedIntBlock(blockSize=340) > NOTE: random locale of testcase 'testNoWaitClose' was: ar_LB > NOTE: random timezone of testcase 'testNoWaitClose' was: EAT > > > -- > - Mark > > http://www.lucidimagination.com > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org