lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-2576) Intermittent failure in TestIndexWriter.testCommitThreadSafety
Date Sat, 02 Oct 2010 18:19:33 GMT

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

Robert Muir commented on LUCENE-2576:
-------------------------------------

I just hit a similar issue myself.. but i can't reproduce it easily.

{noformat}
    [junit] Testsuite: org.apache.lucene.index.TestIndexWriter
    [junit] Testcase: testCommitThreadSafety(org.apache.lucene.index.TestIndexWriter):  Caused
an ERROR
    [junit] MockDirectoryWrapper: cannot close: there are still open files: {_2g.tis=1}
    [junit] java.lang.RuntimeException: MockDirectoryWrapper: cannot close: there are still
open files: {_2g.tis=1}
    [junit]     at org.apache.lucene.store.MockDirectoryWrapper.close(MockDirectoryWrapper.java:343)
    [junit]     at org.apache.lucene.index.TestIndexWriter.testCommitThreadSafety(TestIndexWriter.java:4701)
    [junit]     at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:795)
    [junit]     at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:768)
    [junit] Caused by: java.lang.RuntimeException: unclosed IndexInput
    [junit]     at org.apache.lucene.store.MockDirectoryWrapper.openInput(MockDirectoryWrapper.java:300)
    [junit]     at org.apache.lucene.store.Directory.openInput(Directory.java:138)
    [junit]     at org.apache.lucene.index.codecs.preflex.TermInfosReader.<init>(TermInfosReader.java:106)
    [junit]     at org.apache.lucene.index.codecs.preflex.PreFlexFields.<init>(PreFlexFields.java:78)
    [junit]     at org.apache.lucene.index.codecs.preflexrw.PreFlexRWCodec$1.<init>(PreFlexRWCodec.java:54)
    [junit]     at org.apache.lucene.index.codecs.preflexrw.PreFlexRWCodec.fieldsProducer(PreFlexRWCodec.java:54)
    [junit]     at org.apache.lucene.index.SegmentReader$CoreReaders.<init>(SegmentReader.java:136)
    [junit]     at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:536)
    [junit]     at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:509)
    [junit]     at org.apache.lucene.index.DirectoryReader.<init>(DirectoryReader.java:245)
    [junit]     at org.apache.lucene.index.DirectoryReader.doReopen(DirectoryReader.java:503)
    [junit]     at org.apache.lucene.index.DirectoryReader.access$000(DirectoryReader.java:48)
    [junit]     at org.apache.lucene.index.DirectoryReader$2.doBody(DirectoryReader.java:496)
    [junit]     at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:630)
    [junit]     at org.apache.lucene.index.DirectoryReader.doReopenNoWriter(DirectoryReader.java:491)
    [junit]     at org.apache.lucene.index.DirectoryReader.doReopen(DirectoryReader.java:449)
    [junit]     at org.apache.lucene.index.DirectoryReader.reopen(DirectoryReader.java:409)
    [junit]     at org.apache.lucene.index.TestIndexWriter$9.run(TestIndexWriter.java:4680)
    [junit]
    [junit]
    [junit] Tests run: 116, Failures: 0, Errors: 1, Time elapsed: 28.646 sec
    [junit]
    [junit] ------------- Standard Output ---------------
    [junit] NOTE: reproduce with: ant test -Dtestcase=TestIndexWriter -Dtestmethod=testCommitThreadSafety
-Dtests.seed=-8057983090429434268:7680346069737615565
    [junit] NOTE: test params are: codec=PreFlex, locale=mk_MK, timezone=America/Fortaleza
{noformat}


> Intermittent failure in TestIndexWriter.testCommitThreadSafety
> --------------------------------------------------------------
>
>                 Key: LUCENE-2576
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2576
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Michael McCandless
>             Fix For: 4.0
>
>         Attachments: LUCENE-2576.patch
>
>
> Mark's while(1) hudson box found this failure (and I can repro it too):
> {noformat}
> Error Message
> MockRAMDirectory: cannot close: there are still open files: {_1m.cfs=1,
> _1k.cfs=1, _14.cfs=1, _1g.cfs=1, _1h.cfs=1, _1f.cfs=1, _1n.cfs=1,
> _1i.cfs=1, _1j.cfs=1, _1l.cfs=1}
> Stacktrace
> java.lang.RuntimeException: MockRAMDirectory: cannot close: there are
> still open files: {_1m.cfs=1, _1k.cfs=1, _14.cfs=1, _1g.cfs=1,
> _1h.cfs=1, _1f.cfs=1, _1n.cfs=1, _1i.cfs=1, _1j.cfs=1, _1l.cfs=1}
>        at
> org.apache.lucene.store.MockRAMDirectory.close(MockRAMDirectory.java:282)
>        at
> org.apache.lucene.index.TestIndexWriter.testCommitThreadSafety(TestIndexWriter.java:4616)
>        at org.apache.lucene.util.LuceneTestCase.runBare(LuceneTestCase.java:328)
> Standard Output
> NOTE: random codec of testcase 'testCommitThreadSafety' was: Sep
> Standard Error
> The following exceptions were thrown by threads:
> *** Thread: Thread-1784 ***
> java.lang.RuntimeException: junit.framework.AssertionFailedError: null
>        at org.apache.lucene.index.TestIndexWriter$9.run(TestIndexWriter.java:4606)
> Caused by: junit.framework.AssertionFailedError: null
>        at junit.framework.Assert.fail(Assert.java:47)
>        at junit.framework.Assert.assertTrue(Assert.java:20)
>        at junit.framework.Assert.assertTrue(Assert.java:27)
>        at org.apache.lucene.index.TestIndexWriter$9.run(TestIndexWriter.java:4597)
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message