Only seed the RNG once in sharding_multiversion tests

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.3.5
    • Affects Version/s: 4.3 Desired
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • Repl 2020-03-09
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, in the sharding_multiversion suite, we are seeding the random number generator for each replica set rather than seeding it only once. This makes reproducing the tests in sharding_multiversion more difficult.
      This line here should instead be something like:

      self.seedRandomNumberGenerator = opts.hasOwnProperty('seedRandomNumberGenerator') ? opts.seedRandomNumberGenerator : true;
      

      Additionally, the check in shardingtest.js here should be checking jsTest.options().useRandomBinVersionsWithinReplicaSet instead of the no longer used jsTest.options().randomBinVersions.

            Assignee:
            Jason Chan
            Reporter:
            Jason Chan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: