OK I committed a fix... sneakiness.

Mike McCandless

http://blog.mikemccandless.com

On Thu, Nov 10, 2011 at 11:19 AM, Shai Erera <ser...@gmail.com> wrote:
> I hit this failure while running tests (after my changes to LTC), but I
> cannot reproduce again (and I don't think it is related to the changes to
> LTC):
>
>     [junit] Testsuite: org.apache.lucene.search.TestSearcherManager
>     [junit] Testcase:
> testSearcherManager(org.apache.lucene.search.TestSearcherManager):
> FAILED
>     [junit]
>     [junit] junit.framework.AssertionFailedError:
>     [junit]     at
> org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:147)
>     [junit]     at
> org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:50)
>     [junit]     at
> org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase.runTest(ThreadedIndexingAndSearchingTestCase.java:519)
>     [junit]     at
> org.apache.lucene.search.TestSearcherManager.testSearcherManager(TestSearcherManager.java:48)
>     [junit]     at
> org.apache.lucene.util.LuceneTestCase$2$1.evaluate(LuceneTestCase.java:440)
>     [junit]
>     [junit]
>     [junit] Testcase:
> testSearcherManager(org.apache.lucene.search.TestSearcherManager):
> Caused an ERROR
>     [junit] java.lang.AssertionError: Some threads threw uncaught
> exceptions!
>     [junit] java.lang.RuntimeException: java.lang.AssertionError: Some
> threads threw uncaught exceptions!
>     [junit]     at
> org.apache.lucene.util.LuceneTestCase.tearDown(LuceneTestCase.java:579)
>     [junit]     at
> org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:147)
>     [junit]     at
> org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:50)
>     [junit]     at
> org.apache.lucene.util.LuceneTestCase.checkUncaughtExceptionsAfter(LuceneTestCase.java:607)
>     [junit]     at
> org.apache.lucene.util.LuceneTestCase.tearDown(LuceneTestCase.java:551)
>     [junit]
>     [junit]
>     [junit] Tests run: 2, Failures: 1, Errors: 1, Time elapsed: 1.377 sec
>     [junit]
>     [junit] ------------- Standard Output ---------------
>     [junit] Thread-122: hit exc
>     [junit] java.lang.ArrayIndexOutOfBoundsException
>     [junit]     at
> java.util.AbstractCollection.toArray(AbstractCollection.java:353)
>     [junit]     at java.util.ArrayList.<init>(ArrayList.java:87)
>     [junit]     at
> org.apache.lucene.search.SearcherLifetimeManager.prune(SearcherLifetimeManager.java:253)
>     [junit]     at
> org.apache.lucene.search.TestSearcherManager.getCurrentSearcher(TestSearcherManager.java:128)
>     [junit]     at
> org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase$2.run(ThreadedIndexingAndSearchingTestCase.java:335)
>     [junit] ------------- ---------------- ---------------
>     [junit] ------------- Standard Error -----------------
>     [junit] NOTE: reproduce with: ant test -Dtestcase=TestSearcherManager
> -Dtestmethod=testSearcherManager
> -Dtests.seed=1b654994af17b1f:-78c23f65ae5ee8f7:6df71ecb10c856ac
> -Dargs="-Dfile.encoding=Cp1252"
>     [junit] The following exceptions were thrown by threads:
>     [junit] *** Thread: Thread-122 ***
>     [junit] java.lang.RuntimeException:
> java.lang.ArrayIndexOutOfBoundsException
>     [junit]     at
> org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase$2.run(ThreadedIndexingAndSearchingTestCase.java:392)
>     [junit] Caused by: java.lang.ArrayIndexOutOfBoundsException
>     [junit]     at
> java.util.AbstractCollection.toArray(AbstractCollection.java:353)
>     [junit]     at java.util.ArrayList.<init>(ArrayList.java:87)
>     [junit]     at
> org.apache.lucene.search.SearcherLifetimeManager.prune(SearcherLifetimeManager.java:253)
>     [junit]     at
> org.apache.lucene.search.TestSearcherManager.getCurrentSearcher(TestSearcherManager.java:128)
>     [junit]     at
> org.apache.lucene.index.ThreadedIndexingAndSearchingTestCase$2.run(ThreadedIndexingAndSearchingTestCase.java:335)
>     [junit] NOTE: reproduce with: ant test -Dtestcase=TestSearcherManager
> -Dtestmethod=testSearcherManager
> -Dtests.seed=1b654994af17b1f:-78c23f65ae5ee8f7:6df71ecb10c856ac
> -Dargs="-Dfile.encoding=Cp1252"
>     [junit] NOTE: test params are: locale=en,
> timezone=America/North_Dakota/Beulah
>     [junit] NOTE: all tests run in this JVM:
>     [junit] [TestCharArraySet, TestMappingCharFilter,
> TestTeeSinkTokenFilter, TestBinaryDocument, TestAtomicUpdate,
> TestDirectoryReader, TestIndexFileDeleter, TestIndexWriter,
> TestIndexWriterNRTIsCurrent, TestLazyBug, TestNoDeletionPolicy,
> TestOptimizeForever, TestPositionBasedTermVectorMapper, TestSegmentReader,
> TestStressNRT, TestTieredMergePolicy, TestQueryParser, TestBooleanScorer,
> TestDateFilter, TestFieldCacheRangeFilter, TestMultiSearcher,
> TestNumericRangeQuery32, TestPrefixInBooleanQuery, TestSearcherManager]
>     [junit] NOTE: Windows 7 6.1 build 7600 amd64/IBM Corporation 1.6.0
> (64-bit)/cpus=2,threads=3,free=3057744,total=14187520
>     [junit] ------------- ---------------- ---------------
>     [junit] TEST org.apache.lucene.search.TestSearcherManager FAILED
>
> I tried to rerun the test w/ -Dtests.iter=100 but it still passed. I need to
> leave now, so if anyone wants to take a look in the meantime ...
>
> Shai
>

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

Reply via email to