Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-46546

Only seed the RNG once in sharding_multiversion tests

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

      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@mongodb.com Jason Chan
            Reporter:
            jason.chan@mongodb.com Jason Chan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: