-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
Fully Compatible
-
ALL
-
Sharding 2019-12-02
-
49
jstests/sharding/shard_aware_init_secondaries.js restarts a shard secondary to verify it initializes its sharding state. It does this by passing the secondary's options to ReplSetTest.restart(). These options include binVersion, so this restart fails in the sharding_multiversion suite because "TestData. useRandomBinVersionsWithinReplicaSet" is set to true, failing this assertion.
Instead, if no options are given to ReplSetTest.restart(), the node will be restarted using its original startup options and a random binVersion, allowing us to not blacklist the test from multiversion suites.