Uploaded image for project: 'Solr'
  1. Solr
  2. 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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.2, 7.0
    • None
    • None

    Description

      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.

      Attachments

        1. SOLR-9367.patch
          9 kB
          Chris M. Hostetter

        Issue Links

          Activity

            People

              hossman Chris M. Hostetter
              hossman Chris M. Hostetter
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: