summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorPaolo Polato <paolo.polato@mongodb.com>2022-01-10 09:34:32 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-01-10 10:09:32 +0000
commit175fd99112a85255094c8951db61306eb802326a (patch)
treeac04c3576f30bd2f8c054cc3524f267571ccfaf8 /jstests
parent32a1cab2757c53fd29c4d9909fa3b0f07ecfac03 (diff)
downloadmongo-175fd99112a85255094c8951db61306eb802326a.tar.gz
SERVER-62419 fix recover_multiple_migrations_on_stepup.js execution in config stepdown suites.
Diffstat (limited to 'jstests')
-rw-r--r--jstests/sharding/recover_multiple_migrations_on_stepup.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/jstests/sharding/recover_multiple_migrations_on_stepup.js b/jstests/sharding/recover_multiple_migrations_on_stepup.js
index b8cf4644df8..03095e58864 100644
--- a/jstests/sharding/recover_multiple_migrations_on_stepup.js
+++ b/jstests/sharding/recover_multiple_migrations_on_stepup.js
@@ -57,9 +57,9 @@ joinMoveChunk1();
// Start a second migration on a different collection, wait until it persists it's recovery document
// and then step down the donor.
var moveChunkHangAtStep3Failpoint = configureFailPoint(st.rs0.getPrimary(), "moveChunkHangAtStep3");
-
-var joinMoveChunk2 = moveChunkParallel(
- staticMongod, st.s0.host, {_id: 0}, null, nsB, st.shard1.shardName, false /* expectSuccess */);
+// NOTE: The test doesn't join this parallel migration to avoid the check on its outcome,
+// which is not deterministic when executed in a configsvr stepdown suite (SERVER-62419)
+moveChunkParallel(staticMongod, st.s0.host, {_id: 0}, null, nsB, st.shard1.shardName);
moveChunkHangAtStep3Failpoint.wait();
@@ -74,7 +74,6 @@ assert.eq(2, st.rs0.getPrimary().getDB('config')['migrationCoordinators'].countD
// Stepdown the donor shard
assert.commandWorked(st.rs0.getPrimary().adminCommand({replSetStepDown: 5, force: true}));
moveChunkHangAtStep3Failpoint.off();
-joinMoveChunk2();
// Check that the donor shard has been able to recover the shard version for both collections.
assert.eq(0, collA.find().itcount());