[
https://issues.apache.org/jira/browse/LUCENE-5623?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Muir updated LUCENE-5623:
--------------------------------
Attachment: LUCENE-5623_test.patch
Here is a modification to the test, to not run the searches into the same
collector each time.
The duplicate docids etc make the test impossible to debug.
Note that with this fix, the test still sometimes fails, so I think there might
also be a real bug (in addition to this test craziness). Hopefully now its
possible to debug:
{noformat}
ant test -Dtestcase=TestEarlyTermination -Dtests.method=testEarlyTermination
-Dtests.seed=39B76394E24F9893 -Dtests.locale=sv_SE -Dtests.timezone=Asia/Qatar
-Dtests.file.encoding=UTF-8
{noformat}
> Reproducible TestEarlyTermination failure
> -----------------------------------------
>
> Key: LUCENE-5623
> URL: https://issues.apache.org/jira/browse/LUCENE-5623
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Michael McCandless
> Fix For: 4.9, 5.0
>
> Attachments: LUCENE-5623_test.patch
>
>
> {noformat}
> ant test -Dtestcase=TestEarlyTermination -Dtests.method=testEarlyTermination
> -Dtests.seed=23B2828CD7A1C1BC -Dtests.slow=true -Dtests.locale=en_AU
> -Dtests.timezone=Europe/Tirane -Dtests.file.encoding=UTF-8
> {noformat}
> results in this:
> {noformat}
> [junit4] > Throwable #1: java.lang.AssertionError: expected:<95> but
> was:<65>
> [junit4] > at
> __randomizedtesting.SeedInfo.seed([23B2828CD7A1C1BC:EC25C3D3EFCD51BF]:0)
> [junit4] > at
> org.apache.lucene.index.sorter.TestEarlyTermination.assertTopDocsEquals(TestEarlyTermination.java:183)
> [junit4] > at
> org.apache.lucene.index.sorter.TestEarlyTermination.testEarlyTermination(TestEarlyTermination.java:128)
> [junit4] > at java.lang.Thread.run(Thread.java:724)
> [junit4] 2> NOTE: test params are: codec=Lucene46:
> {s=Pulsing41(freqCutoff=16 minBlockSize=9 maxBlockSize=65)},
> docValues:{ndv2=DocValuesFormat(name=Asserting),
> ndv1=DocValuesFormat(name=Disk)}, sim=DefaultSimilarity, locale=en_AU,
> timezone=Europe/Tirane
> [junit4] 2> NOTE: Linux 3.5.0-47-generic amd64/Oracle Corporation
> 1.7.0_25 (64-bit)/cpus=8,threads=1,free=206930744,total=247463936
> [junit4] 2> NOTE: All tests run in this JVM: [TestEarlyTermination]
> {noformat}
> I haven't looked into it.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]