Lucene - Core
  1. Lucene - Core
  2. LUCENE-2853

Improve random seed portability for test cases

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0-ALPHA
    • Fix Version/s: 4.9, 5.0
    • Component/s: general/build
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Currently, tests get a random seed, and several possibilities can be randomly assigned, or fixed to
      specific values with -Dtests.codec or -Dtests.directory.

      The default values for these sort of things is 'random'.

      I think it would be a great improvement if we:

      • improved our code here so that we always consume the same amount from the Random. this means for example, if you specific -Dtests.directory=RAMDirectory, we should consume a wasted int, where we would normally pick one from random.
      • in 3.x, i think its worth it to actually consume wasted ints where 4.0 picks the codec.

      With these changes, you could ideally (in many situations situations)

      1. take a failure and modify parameters to see if its specific to a particular codec or directory, or a general problem
      2. take a failure from trunk and see if it affects 3.x

        Activity

        Hide
        Steve Rowe added a comment -

        Bulk move 4.4 issues to 4.5 and 5.0

        Show
        Steve Rowe added a comment - Bulk move 4.4 issues to 4.5 and 5.0
        Hide
        Uwe Schindler added a comment -

        Move issue to Lucene 4.9.

        Show
        Uwe Schindler added a comment - Move issue to Lucene 4.9.

          People

          • Assignee:
            Unassigned
            Reporter:
            Robert Muir
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development