You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Hoss Man (JIRA)" <ji...@apache.org> on 2016/08/09 21:53:20 UTC

[jira] [Resolved] (SOLR-9367) TestInjection's use of a static Random means that sequences of events can be diff for the same test seed depending on wether individual methods are run, or entire test classes, or multiple classes in the same slave JVM

     [ https://issues.apache.org/jira/browse/SOLR-9367?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hoss Man resolved SOLR-9367.
----------------------------
       Resolution: Fixed
         Assignee: Hoss Man
    Fix Version/s: master (7.0)
                   6.2

> TestInjection's use of a static Random means that sequences of events can be diff for the same test seed depending on wether individual methods are run, or entire test classes, or multiple classes in the same slave JVM
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-9367
>                 URL: https://issues.apache.org/jira/browse/SOLR-9367
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Hoss Man
>            Assignee: Hoss Man
>             Fix For: 6.2, master (7.0)
>
>         Attachments: SOLR-9367.patch
>
>
> While digging through SOLR-9363, I realized that the reason the failures reproduced when running the entire {{-Dtestcase}} but not the individual {{-Dtests.method}} was because TestInjection was behaving differently in those cases.
> This is because TestInjection uses a static Random instance -- allthough it is initialized based on the {{tests.seed}} sysprop to _try_ to be reproducible, it's behavior still very much depends on how many testcases are run in that slave JVM, and/or how many test methods are run.



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

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