lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] Created: (LUCENE-2767) Missing sync in IndexWriter.addIndexes(IndexReader[])
Date Tue, 16 Nov 2010 15:00:17 GMT
Missing sync in IndexWriter.addIndexes(IndexReader[])

                 Key: LUCENE-2767
             Project: Lucene - Java
          Issue Type: Bug
            Reporter: Michael McCandless

The 3.x build just hit this:

    [junit] Testsuite: org.apache.lucene.index.TestAddIndexes
    [junit] Testcase: testAddIndexesWithThreads(org.apache.lucene.index.TestAddIndexes):	FAILED
    [junit] expected:<3160> but was:<2701>
    [junit] junit.framework.AssertionFailedError: expected:<3160> but was:<2701>
    [junit] 	at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(
    [junit] 	at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(
    [junit] 	at org.apache.lucene.index.TestAddIndexes.testAddIndexesWithThreads(
    [junit] Tests run: 15, Failures: 1, Errors: 0, Time elapsed: 9.28 sec
    [junit] ------------- Standard Output ---------------
    [junit] java.lang.AssertionError: RefCount is 0 pre-decrement for file "_8a.tvf"
    [junit] 	at org.apache.lucene.index.IndexFileDeleter$RefCount.DecRef(
    [junit] 	at org.apache.lucene.index.IndexFileDeleter.decRef(
    [junit] 	at org.apache.lucene.index.IndexFileDeleter.decRef(
    [junit] 	at org.apache.lucene.index.IndexWriter.addIndexes(
    [junit] 	at org.apache.lucene.index.TestAddIndexes$CommitAndAddIndexes.doBody(
    [junit] 	at org.apache.lucene.index.TestAddIndexes$RunAddIndexesThreads$
    [junit] NOTE: reproduce with: ant test -Dtestcase=TestAddIndexes -Dtestmethod=testAddIndexesWithThreads
-Dtests.seed=-6912763261803132408:-5575674032550262483 -Dtests.multiplier=3
    [junit] NOTE: test params are: locale=en_AU, timezone=America/Atka

It looks like it's caused by a long-standing missing sync (since at least 2.9.x).  I think
likely we hit it just now thanks to adding random Thread.yield()'s in MockDirWrapper!

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:
For additional commands, e-mail:

View raw message