This is a nasty looking failure ... it tripped on an assert that I
don't think is possible :)

[junit4]   2> NOTE: reproduce with: ant test
-Dtestcase=TestBagOfPostings -Dtests.method=test
-Dtests.seed=ACF487FB7141D4A9 -Dtests.multiplier=3 -Dtests.slow=true
-Dtests.locale=fr-BI -Dtests.timezone=America/Porto_Velho
-Dtests.asserts=true -Dtests.file.encoding=UTF-8
   [junit4] ERROR   5.97s J1 | TestBagOfPostings.test <<<
   [junit4]    > Throwable #1:
com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an
uncaught exception in thread: Thread[id=302, name=Thread-226,
state=RUNNABLE, group=TGRP-TestBagOfPostings]
   [junit4]    > at
__randomizedtesting.SeedInfo.seed([ACF487FB7141D4A9:24A0B821DFBDB951]:0)
   [junit4]    > Caused by: java.lang.AssertionError
   [junit4]    > at __randomizedtesting.SeedInfo.seed([ACF487FB7141D4A9]:0)
   [junit4]    > at
org.apache.lucene.index.TieredMergePolicy.findMerges(TieredMergePolicy.java:409)
   [junit4]    > at
org.apache.lucene.index.IndexWriter.updatePendingMerges(IndexWriter.java:2087)
   [junit4]    > at
org.apache.lucene.index.IndexWriter.maybeMerge(IndexWriter.java:2051)
   [junit4]    > at
org.apache.lucene.index.IndexWriter.doAfterSegmentFlushed(IndexWriter.java:4953)
   [junit4]    > at
org.apache.lucene.index.DocumentsWriter$MergePendingEvent.process(DocumentsWriter.java:731)
   [junit4]    > at
org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:4991)
   [junit4]    > at
org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:4982)
   [junit4]    > at
org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1565)
   [junit4]    > at
org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1307)
   [junit4]    > at
org.apache.lucene.index.RandomIndexWriter.addDocument(RandomIndexWriter.java:171)
   [junit4]    > at
org.apache.lucene.index.TestBagOfPostings$1.run(TestBagOfPostings.java:111)
   [junit4]   2> NOTE: test params are: codec=Asserting(Lucene62):
{field=PostingsFormat(name=LuceneVarGapDocFreqInterval)},
docValues:{}, maxPointsInLeafNode=153,
maxMBSortInHeap=6.690350232411388, sim=ClassicSimilarity,
locale=fr-BI, timezone=America/Porto_Velho
   [junit4]   2> NOTE: Linux 4.4.0-36-generic amd64/Oracle Corporation
9-ea (64-bit)/cpus=12,threads=1,free=204277432,total=508887040
   [junit4]   2> NOTE: All tests run in this JVM: [TestFieldReuse,
TestLucene60PointsFormat, TestDuelingCodecs, TestIsCurrent,
TestIndexWriterCommit, TestQueryRescorer, TestLSBRadixSorter,
TestSimilarity2, TestPerFieldPostingsFormat, TestPostingsOffsets,
TestDocumentsWriterDeleteQueue, TestDateTools, TestDemo,
TestReadOnlyIndex, TestSearchForDuplicates, TestConjunctions,
TestSimpleFSDirectory, MultiCollectorTest, TestBytesRefHash,
TestPagedBytes, TestMixedDocValuesUpdates,
TestLucene50StoredFieldsFormat, TestTotalHitCountCollector,
TestAllFilesHaveChecksumFooter, TestRegexpRandom2,
TestScoreCachingWrappingScorer, TestIndexWriterUnicode,
TestPriorityQueue, TestBagOfPostings]

It's this assert:

          // We should never see an empty candidate: we iterated over
maxMergeAtOnce
          // segments, and already pre-excluded the too-large segments:
          assert candidate.size() > 0;

candidate is an ArrayList, and it should always have at least one
element based on the (admittedly rather hairy) logic above ... I
suspect there is an exciting Java 9 hotspot bug here.  The failure
doesn't repro on Java 1.8.0_101 nor Java 9-ea+139.

Mike McCandless

http://blog.mikemccandless.com


On Mon, Oct 10, 2016 at 6:45 PM, Policeman Jenkins Server
<jenk...@thetaphi.de> wrote:
> Build: https://jenkins.thetaphi.de/job/Lucene-Solr-6.x-Linux/1919/
> Java: 64bit/jdk-9-ea+138 -XX:+UseCompressedOops -XX:+UseConcMarkSweepGC
>
> 1 tests failed.
> FAILED:  org.apache.lucene.index.TestBagOfPostings.test
>
> Error Message:
> Captured an uncaught exception in thread: Thread[id=302, name=Thread-226, 
> state=RUNNABLE, group=TGRP-TestBagOfPostings]
>
> Stack Trace:
> com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an 
> uncaught exception in thread: Thread[id=302, name=Thread-226, state=RUNNABLE, 
> group=TGRP-TestBagOfPostings]
>         at 
> __randomizedtesting.SeedInfo.seed([ACF487FB7141D4A9:24A0B821DFBDB951]:0)
> Caused by: java.lang.AssertionError
>         at __randomizedtesting.SeedInfo.seed([ACF487FB7141D4A9]:0)
>         at 
> org.apache.lucene.index.TieredMergePolicy.findMerges(TieredMergePolicy.java:409)
>         at 
> org.apache.lucene.index.IndexWriter.updatePendingMerges(IndexWriter.java:2087)
>         at 
> org.apache.lucene.index.IndexWriter.maybeMerge(IndexWriter.java:2051)
>         at 
> org.apache.lucene.index.IndexWriter.doAfterSegmentFlushed(IndexWriter.java:4953)
>         at 
> org.apache.lucene.index.DocumentsWriter$MergePendingEvent.process(DocumentsWriter.java:731)
>         at 
> org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:4991)
>         at 
> org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:4982)
>         at 
> org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1565)
>         at 
> org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1307)
>         at 
> org.apache.lucene.index.RandomIndexWriter.addDocument(RandomIndexWriter.java:171)
>         at 
> org.apache.lucene.index.TestBagOfPostings$1.run(TestBagOfPostings.java:111)
>
>
>
>
> Build Log:
> [...truncated 504 lines...]
>    [junit4] Suite: org.apache.lucene.index.TestBagOfPostings
>    [junit4]   2> oct. 10, 2016 5:40:55 PM 
> com.carrotsearch.randomizedtesting.RandomizedRunner$QueueUncaughtExceptionsHandler
>  uncaughtException
>    [junit4]   2> AVERTISSEMENT: Uncaught exception in thread: 
> Thread[Thread-226,5,TGRP-TestBagOfPostings]
>    [junit4]   2> java.lang.AssertionError
>    [junit4]   2>        at 
> __randomizedtesting.SeedInfo.seed([ACF487FB7141D4A9]:0)
>    [junit4]   2>        at 
> org.apache.lucene.index.TieredMergePolicy.findMerges(TieredMergePolicy.java:409)
>    [junit4]   2>        at 
> org.apache.lucene.index.IndexWriter.updatePendingMerges(IndexWriter.java:2087)
>    [junit4]   2>        at 
> org.apache.lucene.index.IndexWriter.maybeMerge(IndexWriter.java:2051)
>    [junit4]   2>        at 
> org.apache.lucene.index.IndexWriter.doAfterSegmentFlushed(IndexWriter.java:4953)
>    [junit4]   2>        at 
> org.apache.lucene.index.DocumentsWriter$MergePendingEvent.process(DocumentsWriter.java:731)
>    [junit4]   2>        at 
> org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:4991)
>    [junit4]   2>        at 
> org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:4982)
>    [junit4]   2>        at 
> org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1565)
>    [junit4]   2>        at 
> org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1307)
>    [junit4]   2>        at 
> org.apache.lucene.index.RandomIndexWriter.addDocument(RandomIndexWriter.java:171)
>    [junit4]   2>        at 
> org.apache.lucene.index.TestBagOfPostings$1.run(TestBagOfPostings.java:111)
>    [junit4]   2>
>    [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestBagOfPostings 
> -Dtests.method=test -Dtests.seed=ACF487FB7141D4A9 -Dtests.multiplier=3 
> -Dtests.slow=true -Dtests.locale=fr-BI -Dtests.timezone=America/Porto_Velho 
> -Dtests.asserts=true -Dtests.file.encoding=UTF-8
>    [junit4] ERROR   5.97s J1 | TestBagOfPostings.test <<<
>    [junit4]    > Throwable #1: 
> com.carrotsearch.randomizedtesting.UncaughtExceptionError: Captured an 
> uncaught exception in thread: Thread[id=302, name=Thread-226, state=RUNNABLE, 
> group=TGRP-TestBagOfPostings]
>    [junit4]    >        at 
> __randomizedtesting.SeedInfo.seed([ACF487FB7141D4A9:24A0B821DFBDB951]:0)
>    [junit4]    > Caused by: java.lang.AssertionError
>    [junit4]    >        at 
> __randomizedtesting.SeedInfo.seed([ACF487FB7141D4A9]:0)
>    [junit4]    >        at 
> org.apache.lucene.index.TieredMergePolicy.findMerges(TieredMergePolicy.java:409)
>    [junit4]    >        at 
> org.apache.lucene.index.IndexWriter.updatePendingMerges(IndexWriter.java:2087)
>    [junit4]    >        at 
> org.apache.lucene.index.IndexWriter.maybeMerge(IndexWriter.java:2051)
>    [junit4]    >        at 
> org.apache.lucene.index.IndexWriter.doAfterSegmentFlushed(IndexWriter.java:4953)
>    [junit4]    >        at 
> org.apache.lucene.index.DocumentsWriter$MergePendingEvent.process(DocumentsWriter.java:731)
>    [junit4]    >        at 
> org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:4991)
>    [junit4]    >        at 
> org.apache.lucene.index.IndexWriter.processEvents(IndexWriter.java:4982)
>    [junit4]    >        at 
> org.apache.lucene.index.IndexWriter.updateDocument(IndexWriter.java:1565)
>    [junit4]    >        at 
> org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1307)
>    [junit4]    >        at 
> org.apache.lucene.index.RandomIndexWriter.addDocument(RandomIndexWriter.java:171)
>    [junit4]    >        at 
> org.apache.lucene.index.TestBagOfPostings$1.run(TestBagOfPostings.java:111)
>    [junit4]   2> NOTE: test params are: codec=Asserting(Lucene62): 
> {field=PostingsFormat(name=LuceneVarGapDocFreqInterval)}, docValues:{}, 
> maxPointsInLeafNode=153, maxMBSortInHeap=6.690350232411388, 
> sim=ClassicSimilarity, locale=fr-BI, timezone=America/Porto_Velho
>    [junit4]   2> NOTE: Linux 4.4.0-36-generic amd64/Oracle Corporation 9-ea 
> (64-bit)/cpus=12,threads=1,free=204277432,total=508887040
>    [junit4]   2> NOTE: All tests run in this JVM: [TestFieldReuse, 
> TestLucene60PointsFormat, TestDuelingCodecs, TestIsCurrent, 
> TestIndexWriterCommit, TestQueryRescorer, TestLSBRadixSorter, 
> TestSimilarity2, TestPerFieldPostingsFormat, TestPostingsOffsets, 
> TestDocumentsWriterDeleteQueue, TestDateTools, TestDemo, TestReadOnlyIndex, 
> TestSearchForDuplicates, TestConjunctions, TestSimpleFSDirectory, 
> MultiCollectorTest, TestBytesRefHash, TestPagedBytes, 
> TestMixedDocValuesUpdates, TestLucene50StoredFieldsFormat, 
> TestTotalHitCountCollector, TestAllFilesHaveChecksumFooter, 
> TestRegexpRandom2, TestScoreCachingWrappingScorer, TestIndexWriterUnicode, 
> TestPriorityQueue, TestBagOfPostings]
>    [junit4] Completed [91/439 (1!)] on J1 in 5.98s, 1 test, 1 error <<< 
> FAILURES!
>
> [...truncated 62112 lines...]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
> For additional commands, e-mail: dev-h...@lucene.apache.org

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

Reply via email to