[ 
https://issues.apache.org/jira/browse/LUCENE-6194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14287202#comment-14287202
 ] 

Michael McCandless commented on LUCENE-6194:
--------------------------------------------

bq. At least in an ideal world this should be the case?

I agree, hrmph.  Here's the failure I see:

{noformat}
   [junit4]   2> NOTE: download the large Jenkins line-docs file by running 
'ant get-jenkins-line-docs' in the lucene directory.
   [junit4]   2> NOTE: reproduce with: ant test  -Dtestcase=TestPriorityQueue 
-Dtests.method=testRemovalsAndInsertions -Dtests.seed=2576D26D551748E5 
-Dtests.slow=true 
-Dtests.linedocsfile=/lucenedata/hudson.enwiki.random.lines.txt 
-Dtests.locale=ru_RU -Dtests.timezone=Europe/Paris -Dtests.asserts=true 
-Dtests.file.encoding=UTF-8
   [junit4] FAILURE 0.13s | TestPriorityQueue.testRemovalsAndInsertions <<<
   [junit4]    > Throwable #1: java.lang.AssertionError: parent=69258832 
child=69258832
   [junit4]    >        at 
__randomizedtesting.SeedInfo.seed([2576D26D551748E5:379377B96F92B34E]:0)
   [junit4]    >        at 
org.apache.lucene.util.TestPriorityQueue$IntegerQueue.checkValidity(TestPriorityQueue.java:41)
   [junit4]    >        at 
org.apache.lucene.util.TestPriorityQueue.testRemovalsAndInsertions(TestPriorityQueue.java:171)
   [junit4]    >        at java.lang.Thread.run(Thread.java:745)
{noformat}

I think the bug is that the 2nd part of the seed is not included in the repro 
line?  Because if I use that seed instead, i.e.:

{noformat}
ant test  -Dtestcase=TestPriorityQueue 
-Dtests.method=testRemovalsAndInsertions* 
-Dtests.seed=2576D26D551748E5:379377B96F92B34E -Dtests.slow=true 
-Dtests.linedocsfile=/lucenedata/hudson.enwiki.random.lines.txt 
-Dtests.locale=ru_RU -Dtests.timezone=Europe/Paris -Dtests.asserts=true 
-Dtests.file.encoding=UTF-8
{noformat}

THEN the failure does reproduce with only 1 iteration.

> Reproduce with should include -Dtests.iters=N
> ---------------------------------------------
>
>                 Key: LUCENE-6194
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6194
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/test-framework
>            Reporter: Michael McCandless
>            Priority: Minor
>
> I was playing with the patch on LUCENE-6066, and hit a test failure, but then 
> the "Reproduce with: " failed to reproduce, which threw me for a bit of a 
> loop, until I realized it was missing the -Dtests.iters=N.
> To see this, apply the patch on LUCENE-6066 to trunk and then run this:
> {noformat}
> ant test  -Dtestcase=TestPriorityQueue 
> -Dtests.method=testRemovalsAndInsertions* -Dtests.seed=2576D26D551748E5 
> -Dtests.slow=true 
> -Dtests.linedocsfile=/lucenedata/hudson.enwiki.random.lines.txt 
> -Dtests.locale=ru_RU -Dtests.timezone=Europe/Paris -Dtests.asserts=true 
> -Dtests.file.encoding=UTF-8 -Dtests.iters=10
> {noformat}
> (or just insert a random test failure into e.g. TestDemo or something).
> It should fail, but the "Reproduce with: ..." line does not include 
> -Dtests.iters=10.  I think it should?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to