You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Steven A Rowe <sa...@syr.edu> on 2011/08/25 15:36:21 UTC

test failure: 3.x IndexWriterExceptions.testRandomExceptionsThreads

The Jenkins maven 3.x build failed today:

<https://builds.apache.org/job/Lucene-Solr-Maven-3.x/227/testReport/junit/org.apache.lucene.index/TestIndexWriterExceptions/testRandomExceptionsThreads/>

=====
NOTE: reproduce with: ant test -Dtestcase=TestIndexWriterExceptions -Dtestmethod=testRandomExceptionsThreads -Dtests.seed=41ed40f98cc00a8d:-5acf0be3eb47ba24:-3ad389ca2e929955
=====

This does not fail for me locally with that seed, but if I add -Dtests.iter=100, it always triggers at least one failure (three runs: 5 failures; 3 failures; 1 failure).  Maybe this is one of those tests that don't support multiple iterations, though?

Here's the output from the 100-iter run with 1 failure:

=====
junit-sequential:
    [junit] Testsuite: org.apache.lucene.index.TestIndexWriterExceptions
    [junit] Tests run: 100, Failures: 1, Errors: 0, Time elapsed: 57.95 sec
    [junit] 
    [junit] ------------- Standard Output ---------------
    [junit] WARNING: you are using -Dtests.iter=n where n > 1, not all tests support this option.
    [junit] Some may crash or fail: this is not a bug.
    [junit] Indexer 0: unexpected exception3
    [junit] Indexer 1: unexpected exception2
    [junit] java.lang.NullPointerException
    [junit]     at org.apache.lucene.index.DocInverterPerField.processFields(DocInverterPerField.java:67)
    [junit]     at org.apache.lucene.index.DocFieldProcessorPerThread.processDocument(DocFieldProcessorPerThread.java:278)
    [junit]     at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:766)
    [junit]     at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:2317)
    [junit]     at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:2289)
    [junit]     at org.apache.lucene.index.TestIndexWriterExceptions$IndexerThread.run(TestIndexWriterExceptions.java:126)
    [junit] java.lang.AssertionError: waitQueue.numWaiting=1
    [junit]     at org.apache.lucene.index.DocumentsWriter.abort(DocumentsWriter.java:417)
    [junit]     at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:794)
    [junit]     at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:2317)
    [junit]     at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:2289)
    [junit]     at org.apache.lucene.index.TestIndexWriterExceptions$IndexerThread.run(TestIndexWriterExceptions.java:98)
    [junit] Indexer 2: unexpected exception3
    [junit] java.lang.AssertionError: numWaiting=1
    [junit]     at org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:550)
    [junit]     at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3576)
    [junit]     at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3541)
    [junit]     at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:2324)
    [junit]     at org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:2289)
    [junit]     at org.apache.lucene.index.TestIndexWriterExceptions$IndexerThread.run(TestIndexWriterExceptions.java:126)
    [junit] ------------- ---------------- ---------------
    [junit] ------------- Standard Error -----------------
    [junit] NOTE: reproduce with: ant test -Dtestcase=TestIndexWriterExceptions -Dtestmethod=testRandomExceptionsThreads -Dtests.seed=41ed40f98cc00a8d:-5acf0be3eb47ba24:-3ad389ca2e929955
    [junit] NOTE: test params are: locale=fr_FR, timezone=Pacific/Kwajalein
    [junit] NOTE: all tests run in this JVM:
    [junit] [TestIndexWriterExceptions]
    [junit] NOTE: Windows 7 6.1 amd64/Sun Microsystems Inc. 1.6.0_23 (64-bit)/cpus=8,threads=1,free=41552152,total=94633984
    [junit] ------------- ---------------- ---------------
    [junit] Testcase: testRandomExceptionsThreads(org.apache.lucene.index.TestIndexWriterExceptions):   FAILED
    [junit] thread Indexer 0: hit unexpected failure
    [junit] junit.framework.AssertionFailedError: thread Indexer 0: hit unexpected failure
    [junit]     at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1339)
    [junit]     at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1241)
    [junit]     at org.apache.lucene.index.TestIndexWriterExceptions.testRandomExceptionsThreads(TestIndexWriterExceptions.java:237)
    [junit] 
    [junit] 
    [junit] Test org.apache.lucene.index.TestIndexWriterExceptions FAILED
=====

Steve