-
Type: Improvement
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Testing Infrastructure
-
None
-
Minor Change
-
TIG 2016-10-31, TIG 2016-11-21
MongoRunner.versionIterator is a way to express that a test should be run for multiple binVersions. It currently exposes a single method called toString() which both gets the current value of the iterator and advances it. Instead, it should have separate peek() and next() methods for reading and advancing the value respectively.
This is important because it is easy to subtly break a test in the multiVersion suite by calling toString() on the iterator. This advances the iterator and causes MongoRunner to later launch the wrong version.
After this is fixed, we should be able to re-enable the following tests:
- jstests/multiVersion/2_test_launching_cluster.js
- jstests/multiVersion/dumprestore_sharded.js
- is related to
-
SERVER-25158 Prevent a 3.2 mongos from joining a featureCompatibilityVersion("3.4") cluster
- Closed