You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Mark Miller <ma...@gmail.com> on 2010/09/20 02:55:43 UTC

Failed Test: junit.framework.TestSuite.org.apache.lucene.index.TestIndexWriter (from TestSuite)

Failed

junit.framework.TestSuite.org.apache.lucene.index.TestIndexWriter (from
TestSuite)
Failing for the past 1 build (Since [image:
Failed]#1704<http://localhost:9999/hudson/job/Solcene/1704/>)
Took 0 ms.<http://localhost:9999/hudson/job/Solcene/1704/testReport/junit/junit.framework/TestSuite/org_apache_lucene_index_TestIndexWriter/history>
add description<http://localhost:9999/hudson/job/Solcene/1704/testReport/junit/junit.framework/TestSuite/org_apache_lucene_index_TestIndexWriter/editDescription>
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

Re: Failed Test: junit.framework.TestSuite.org.apache.lucene.index.TestIndexWriter (from TestSuite)

Posted by Robert Muir <rc...@gmail.com>.
On Mon, Sep 20, 2010 at 5:09 AM, Michael McCandless <
lucene@mikemccandless.com> wrote:

> 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?
>

https://issues.apache.org/jira/browse/LUCENE-2656

<https://issues.apache.org/jira/browse/LUCENE-2656>

-- 
Robert Muir
rcmuir@gmail.com

Re: Failed Test: junit.framework.TestSuite.org.apache.lucene.index.TestIndexWriter (from TestSuite)

Posted by Michael McCandless <lu...@mikemccandless.com>.
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 <ma...@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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org