lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (LUCENE-2767) Missing sync in IndexWriter.addIndexes(IndexReader[])
Date Tue, 16 Nov 2010 16:57:05 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-2767?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael McCandless resolved LUCENE-2767.
----------------------------------------

    Resolution: Fixed

> Missing sync in IndexWriter.addIndexes(IndexReader[])
> -----------------------------------------------------
>
>                 Key: LUCENE-2767
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2767
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 2.9.4, 3.0.3, 3.1, 4.0
>
>
> The 3.x build just hit this:
> {noformat}
>     [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(LuceneTestCase.java:779)
>     [junit] 	at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:745)
>     [junit] 	at org.apache.lucene.index.TestAddIndexes.testAddIndexesWithThreads(TestAddIndexes.java:708)
>     [junit] 
>     [junit] 
>     [junit] Tests run: 15, Failures: 1, Errors: 0, Time elapsed: 9.28 sec
>     [junit] 
>     [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(IndexFileDeleter.java:608)
>     [junit] 	at org.apache.lucene.index.IndexFileDeleter.decRef(IndexFileDeleter.java:505)
>     [junit] 	at org.apache.lucene.index.IndexFileDeleter.decRef(IndexFileDeleter.java:496)
>     [junit] 	at org.apache.lucene.index.IndexWriter.addIndexes(IndexWriter.java:2972)
>     [junit] 	at org.apache.lucene.index.TestAddIndexes$CommitAndAddIndexes.doBody(TestAddIndexes.java:681)
>     [junit] 	at org.apache.lucene.index.TestAddIndexes$RunAddIndexesThreads$1.run(TestAddIndexes.java:624)
>     [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
> {noformat}
> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message