You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "selckin (JIRA)" <ji...@apache.org> on 2011/06/08 17:10:59 UTC

[jira] [Created] (LUCENE-3182) TestAddIndexes reproducible test failure on turnk

TestAddIndexes reproducible test failure on turnk
-------------------------------------------------

                 Key: LUCENE-3182
                 URL: https://issues.apache.org/jira/browse/LUCENE-3182
             Project: Lucene - Java
          Issue Type: Bug
            Reporter: selckin


trunk: r1133385

{code}
    [junit] Testsuite: org.apache.lucene.index.TestAddIndexes
    [junit] Tests run: 2843, Failures: 1, Errors: 0, Time elapsed: 137.121 sec
    [junit]
    [junit] ------------- Standard Output ---------------
    [junit] java.io.FileNotFoundException: _cy.fdx
    [junit]     at org.apache.lucene.store.RAMDirectory.fileLength(RAMDirectory.java:121)
    [junit]     at org.apache.lucene.store.MockDirectoryWrapper.fileLength(MockDirectoryWrapper.java:606)
    [junit]     at org.apache.lucene.index.SegmentInfo.sizeInBytes(SegmentInfo.java:294)
    [junit]     at org.apache.lucene.index.TieredMergePolicy.size(TieredMergePolicy.java:633)
    [junit]     at org.apache.lucene.index.TieredMergePolicy.useCompoundFile(TieredMergePolicy.java:611)
    [junit]     at org.apache.lucene.index.IndexWriter.addIndexes(IndexWriter.java:2459)
    [junit]     at org.apache.lucene.index.TestAddIndexes$CommitAndAddIndexes3.doBody(TestAddIndexes.java:847)
    [junit]     at org.apache.lucene.index.TestAddIndexes$RunAddIndexesThreads$1.run(TestAddIndexes.java:675)
    [junit] java.io.FileNotFoundException: _cx.fdx
    [junit]     at org.apache.lucene.store.RAMDirectory.fileLength(RAMDirectory.java:121)
    [junit]     at org.apache.lucene.store.MockDirectoryWrapper.fileLength(MockDirectoryWrapper.java:606)
    [junit]     at org.apache.lucene.index.SegmentInfo.sizeInBytes(SegmentInfo.java:294)
    [junit]     at org.apache.lucene.index.TieredMergePolicy.size(TieredMergePolicy.java:633)
    [junit]     at org.apache.lucene.index.TieredMergePolicy.useCompoundFile(TieredMergePolicy.java:611)
    [junit]     at org.apache.lucene.index.IndexWriter.addIndexes(IndexWriter.java:2459)
    [junit]     at org.apache.lucene.index.TestAddIndexes$CommitAndAddIndexes3.doBody(TestAddIndexes.java:847)
    [junit]     at org.apache.lucene.index.TestAddIndexes$RunAddIndexesThreads$1.run(TestAddIndexes.java:675)
    [junit] ------------- ---------------- ---------------
    [junit] ------------- Standard Error -----------------
    [junit] NOTE: reproduce with: ant test -Dtestcase=TestAddIndexes -Dtestmethod=testAddIndexesWithRollback -Dtests.seed=9026722750295014952:2645762923088581043 -Dtests.multiplier=3
    [junit] NOTE: test params are: codec=RandomCodecProvider: {id=SimpleText, content=SimpleText, d=MockRandom, c=SimpleText}, locale=fr, timezone=Africa/Kigali
    [junit] NOTE: all tests run in this JVM:
    [junit] [TestAddIndexes]
    [junit] NOTE: Linux 2.6.39-gentoo amd64/Sun Microsystems Inc. 1.6.0_25 (64-bit)/cpus=8,threads=1,free=68050392,total=446234624
    [junit] ------------- ---------------- ---------------
    [junit] Testcase: testAddIndexesWithRollback(org.apache.lucene.index.TestAddIndexes):       FAILED
    [junit]
    [junit] junit.framework.AssertionFailedError:
    [junit]     at org.apache.lucene.index.TestAddIndexes.testAddIndexesWithRollback(TestAddIndexes.java:932)
    [junit]     at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1362)
    [junit]     at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1280)
    [junit]
    [junit]
    [junit] Test org.apache.lucene.index.TestAddIndexes FAILED
{code}


Fails randomly in my while(1) test run, and Fails after a few min of running: 
{code}
ant test -Dtestcase=TestAddIndexes -Dtests.seed=9026722750295014952:2645762923088581043 -Dtests.multiplier=3 -Dtests.iter=200 -Dtests.iter.min=1
{code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


[jira] [Updated] (LUCENE-3182) TestAddIndexes reproducible test failure on turnk

Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-3182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael McCandless updated LUCENE-3182:
---------------------------------------

    Attachment: LUCENE-3182.patch

Patch.

There was one test bug here (the test wasn't ignoring a FNFE, which can happen if you close(false) an IW while other threads are still doing stuff), but there were also spooky cases that could in fact corrupt your index!!

> TestAddIndexes reproducible test failure on turnk
> -------------------------------------------------
>
>                 Key: LUCENE-3182
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3182
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: selckin
>            Assignee: Michael McCandless
>         Attachments: LUCENE-3182.patch
>
>
> trunk: r1133385
> {code}
>     [junit] Testsuite: org.apache.lucene.index.TestAddIndexes
>     [junit] Tests run: 2843, Failures: 1, Errors: 0, Time elapsed: 137.121 sec
>     [junit]
>     [junit] ------------- Standard Output ---------------
>     [junit] java.io.FileNotFoundException: _cy.fdx
>     [junit]     at org.apache.lucene.store.RAMDirectory.fileLength(RAMDirectory.java:121)
>     [junit]     at org.apache.lucene.store.MockDirectoryWrapper.fileLength(MockDirectoryWrapper.java:606)
>     [junit]     at org.apache.lucene.index.SegmentInfo.sizeInBytes(SegmentInfo.java:294)
>     [junit]     at org.apache.lucene.index.TieredMergePolicy.size(TieredMergePolicy.java:633)
>     [junit]     at org.apache.lucene.index.TieredMergePolicy.useCompoundFile(TieredMergePolicy.java:611)
>     [junit]     at org.apache.lucene.index.IndexWriter.addIndexes(IndexWriter.java:2459)
>     [junit]     at org.apache.lucene.index.TestAddIndexes$CommitAndAddIndexes3.doBody(TestAddIndexes.java:847)
>     [junit]     at org.apache.lucene.index.TestAddIndexes$RunAddIndexesThreads$1.run(TestAddIndexes.java:675)
>     [junit] java.io.FileNotFoundException: _cx.fdx
>     [junit]     at org.apache.lucene.store.RAMDirectory.fileLength(RAMDirectory.java:121)
>     [junit]     at org.apache.lucene.store.MockDirectoryWrapper.fileLength(MockDirectoryWrapper.java:606)
>     [junit]     at org.apache.lucene.index.SegmentInfo.sizeInBytes(SegmentInfo.java:294)
>     [junit]     at org.apache.lucene.index.TieredMergePolicy.size(TieredMergePolicy.java:633)
>     [junit]     at org.apache.lucene.index.TieredMergePolicy.useCompoundFile(TieredMergePolicy.java:611)
>     [junit]     at org.apache.lucene.index.IndexWriter.addIndexes(IndexWriter.java:2459)
>     [junit]     at org.apache.lucene.index.TestAddIndexes$CommitAndAddIndexes3.doBody(TestAddIndexes.java:847)
>     [junit]     at org.apache.lucene.index.TestAddIndexes$RunAddIndexesThreads$1.run(TestAddIndexes.java:675)
>     [junit] ------------- ---------------- ---------------
>     [junit] ------------- Standard Error -----------------
>     [junit] NOTE: reproduce with: ant test -Dtestcase=TestAddIndexes -Dtestmethod=testAddIndexesWithRollback -Dtests.seed=9026722750295014952:2645762923088581043 -Dtests.multiplier=3
>     [junit] NOTE: test params are: codec=RandomCodecProvider: {id=SimpleText, content=SimpleText, d=MockRandom, c=SimpleText}, locale=fr, timezone=Africa/Kigali
>     [junit] NOTE: all tests run in this JVM:
>     [junit] [TestAddIndexes]
>     [junit] NOTE: Linux 2.6.39-gentoo amd64/Sun Microsystems Inc. 1.6.0_25 (64-bit)/cpus=8,threads=1,free=68050392,total=446234624
>     [junit] ------------- ---------------- ---------------
>     [junit] Testcase: testAddIndexesWithRollback(org.apache.lucene.index.TestAddIndexes):       FAILED
>     [junit]
>     [junit] junit.framework.AssertionFailedError:
>     [junit]     at org.apache.lucene.index.TestAddIndexes.testAddIndexesWithRollback(TestAddIndexes.java:932)
>     [junit]     at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1362)
>     [junit]     at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1280)
>     [junit]
>     [junit]
>     [junit] Test org.apache.lucene.index.TestAddIndexes FAILED
> {code}
> Fails randomly in my while(1) test run, and Fails after a few min of running: 
> {code}
> ant test -Dtestcase=TestAddIndexes -Dtests.seed=9026722750295014952:2645762923088581043 -Dtests.multiplier=3 -Dtests.iter=200 -Dtests.iter.min=1
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


[jira] [Assigned] (LUCENE-3182) TestAddIndexes reproducible test failure on turnk

Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-3182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael McCandless reassigned LUCENE-3182:
------------------------------------------

    Assignee: Michael McCandless

> TestAddIndexes reproducible test failure on turnk
> -------------------------------------------------
>
>                 Key: LUCENE-3182
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3182
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: selckin
>            Assignee: Michael McCandless
>
> trunk: r1133385
> {code}
>     [junit] Testsuite: org.apache.lucene.index.TestAddIndexes
>     [junit] Tests run: 2843, Failures: 1, Errors: 0, Time elapsed: 137.121 sec
>     [junit]
>     [junit] ------------- Standard Output ---------------
>     [junit] java.io.FileNotFoundException: _cy.fdx
>     [junit]     at org.apache.lucene.store.RAMDirectory.fileLength(RAMDirectory.java:121)
>     [junit]     at org.apache.lucene.store.MockDirectoryWrapper.fileLength(MockDirectoryWrapper.java:606)
>     [junit]     at org.apache.lucene.index.SegmentInfo.sizeInBytes(SegmentInfo.java:294)
>     [junit]     at org.apache.lucene.index.TieredMergePolicy.size(TieredMergePolicy.java:633)
>     [junit]     at org.apache.lucene.index.TieredMergePolicy.useCompoundFile(TieredMergePolicy.java:611)
>     [junit]     at org.apache.lucene.index.IndexWriter.addIndexes(IndexWriter.java:2459)
>     [junit]     at org.apache.lucene.index.TestAddIndexes$CommitAndAddIndexes3.doBody(TestAddIndexes.java:847)
>     [junit]     at org.apache.lucene.index.TestAddIndexes$RunAddIndexesThreads$1.run(TestAddIndexes.java:675)
>     [junit] java.io.FileNotFoundException: _cx.fdx
>     [junit]     at org.apache.lucene.store.RAMDirectory.fileLength(RAMDirectory.java:121)
>     [junit]     at org.apache.lucene.store.MockDirectoryWrapper.fileLength(MockDirectoryWrapper.java:606)
>     [junit]     at org.apache.lucene.index.SegmentInfo.sizeInBytes(SegmentInfo.java:294)
>     [junit]     at org.apache.lucene.index.TieredMergePolicy.size(TieredMergePolicy.java:633)
>     [junit]     at org.apache.lucene.index.TieredMergePolicy.useCompoundFile(TieredMergePolicy.java:611)
>     [junit]     at org.apache.lucene.index.IndexWriter.addIndexes(IndexWriter.java:2459)
>     [junit]     at org.apache.lucene.index.TestAddIndexes$CommitAndAddIndexes3.doBody(TestAddIndexes.java:847)
>     [junit]     at org.apache.lucene.index.TestAddIndexes$RunAddIndexesThreads$1.run(TestAddIndexes.java:675)
>     [junit] ------------- ---------------- ---------------
>     [junit] ------------- Standard Error -----------------
>     [junit] NOTE: reproduce with: ant test -Dtestcase=TestAddIndexes -Dtestmethod=testAddIndexesWithRollback -Dtests.seed=9026722750295014952:2645762923088581043 -Dtests.multiplier=3
>     [junit] NOTE: test params are: codec=RandomCodecProvider: {id=SimpleText, content=SimpleText, d=MockRandom, c=SimpleText}, locale=fr, timezone=Africa/Kigali
>     [junit] NOTE: all tests run in this JVM:
>     [junit] [TestAddIndexes]
>     [junit] NOTE: Linux 2.6.39-gentoo amd64/Sun Microsystems Inc. 1.6.0_25 (64-bit)/cpus=8,threads=1,free=68050392,total=446234624
>     [junit] ------------- ---------------- ---------------
>     [junit] Testcase: testAddIndexesWithRollback(org.apache.lucene.index.TestAddIndexes):       FAILED
>     [junit]
>     [junit] junit.framework.AssertionFailedError:
>     [junit]     at org.apache.lucene.index.TestAddIndexes.testAddIndexesWithRollback(TestAddIndexes.java:932)
>     [junit]     at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1362)
>     [junit]     at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1280)
>     [junit]
>     [junit]
>     [junit] Test org.apache.lucene.index.TestAddIndexes FAILED
> {code}
> Fails randomly in my while(1) test run, and Fails after a few min of running: 
> {code}
> ant test -Dtestcase=TestAddIndexes -Dtests.seed=9026722750295014952:2645762923088581043 -Dtests.multiplier=3 -Dtests.iter=200 -Dtests.iter.min=1
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


[jira] [Resolved] (LUCENE-3182) TestAddIndexes reproducible test failure on turnk

Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-3182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael McCandless resolved LUCENE-3182.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 4.0
                   3.3

> TestAddIndexes reproducible test failure on turnk
> -------------------------------------------------
>
>                 Key: LUCENE-3182
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3182
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: selckin
>            Assignee: Michael McCandless
>             Fix For: 3.3, 4.0
>
>         Attachments: LUCENE-3182.patch
>
>
> trunk: r1133385
> {code}
>     [junit] Testsuite: org.apache.lucene.index.TestAddIndexes
>     [junit] Tests run: 2843, Failures: 1, Errors: 0, Time elapsed: 137.121 sec
>     [junit]
>     [junit] ------------- Standard Output ---------------
>     [junit] java.io.FileNotFoundException: _cy.fdx
>     [junit]     at org.apache.lucene.store.RAMDirectory.fileLength(RAMDirectory.java:121)
>     [junit]     at org.apache.lucene.store.MockDirectoryWrapper.fileLength(MockDirectoryWrapper.java:606)
>     [junit]     at org.apache.lucene.index.SegmentInfo.sizeInBytes(SegmentInfo.java:294)
>     [junit]     at org.apache.lucene.index.TieredMergePolicy.size(TieredMergePolicy.java:633)
>     [junit]     at org.apache.lucene.index.TieredMergePolicy.useCompoundFile(TieredMergePolicy.java:611)
>     [junit]     at org.apache.lucene.index.IndexWriter.addIndexes(IndexWriter.java:2459)
>     [junit]     at org.apache.lucene.index.TestAddIndexes$CommitAndAddIndexes3.doBody(TestAddIndexes.java:847)
>     [junit]     at org.apache.lucene.index.TestAddIndexes$RunAddIndexesThreads$1.run(TestAddIndexes.java:675)
>     [junit] java.io.FileNotFoundException: _cx.fdx
>     [junit]     at org.apache.lucene.store.RAMDirectory.fileLength(RAMDirectory.java:121)
>     [junit]     at org.apache.lucene.store.MockDirectoryWrapper.fileLength(MockDirectoryWrapper.java:606)
>     [junit]     at org.apache.lucene.index.SegmentInfo.sizeInBytes(SegmentInfo.java:294)
>     [junit]     at org.apache.lucene.index.TieredMergePolicy.size(TieredMergePolicy.java:633)
>     [junit]     at org.apache.lucene.index.TieredMergePolicy.useCompoundFile(TieredMergePolicy.java:611)
>     [junit]     at org.apache.lucene.index.IndexWriter.addIndexes(IndexWriter.java:2459)
>     [junit]     at org.apache.lucene.index.TestAddIndexes$CommitAndAddIndexes3.doBody(TestAddIndexes.java:847)
>     [junit]     at org.apache.lucene.index.TestAddIndexes$RunAddIndexesThreads$1.run(TestAddIndexes.java:675)
>     [junit] ------------- ---------------- ---------------
>     [junit] ------------- Standard Error -----------------
>     [junit] NOTE: reproduce with: ant test -Dtestcase=TestAddIndexes -Dtestmethod=testAddIndexesWithRollback -Dtests.seed=9026722750295014952:2645762923088581043 -Dtests.multiplier=3
>     [junit] NOTE: test params are: codec=RandomCodecProvider: {id=SimpleText, content=SimpleText, d=MockRandom, c=SimpleText}, locale=fr, timezone=Africa/Kigali
>     [junit] NOTE: all tests run in this JVM:
>     [junit] [TestAddIndexes]
>     [junit] NOTE: Linux 2.6.39-gentoo amd64/Sun Microsystems Inc. 1.6.0_25 (64-bit)/cpus=8,threads=1,free=68050392,total=446234624
>     [junit] ------------- ---------------- ---------------
>     [junit] Testcase: testAddIndexesWithRollback(org.apache.lucene.index.TestAddIndexes):       FAILED
>     [junit]
>     [junit] junit.framework.AssertionFailedError:
>     [junit]     at org.apache.lucene.index.TestAddIndexes.testAddIndexesWithRollback(TestAddIndexes.java:932)
>     [junit]     at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1362)
>     [junit]     at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1280)
>     [junit]
>     [junit]
>     [junit] Test org.apache.lucene.index.TestAddIndexes FAILED
> {code}
> Fails randomly in my while(1) test run, and Fails after a few min of running: 
> {code}
> ant test -Dtestcase=TestAddIndexes -Dtests.seed=9026722750295014952:2645762923088581043 -Dtests.multiplier=3 -Dtests.iter=200 -Dtests.iter.min=1
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

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