summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Russotto <matthew.russotto@mongodb.com>2022-08-19 13:57:27 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-11-14 20:26:32 +0000
commitdd817bddaea7c947ed565180df6913cec00b9304 (patch)
treedbe6de30df04d665e2dc20894084ebfcda889ca6
parent4bf7c5d7cb66be76956685783fc9014b05b2baf4 (diff)
downloadmongo-dd817bddaea7c947ed565180df6913cec00b9304.tar.gz
SERVER-68866 drop_connections_replset needs to wait for configs to propagate.
(cherry picked from commit c1ae6a0eb81d489177f17cc7ad71d817983691f4)
-rw-r--r--jstests/noPassthrough/drop_connections_replSet.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/noPassthrough/drop_connections_replSet.js b/jstests/noPassthrough/drop_connections_replSet.js
index 0809dad8ca5..2f1f7ea332d 100644
--- a/jstests/noPassthrough/drop_connections_replSet.js
+++ b/jstests/noPassthrough/drop_connections_replSet.js
@@ -52,5 +52,8 @@ cfg.members.push(removedMember[0]);
cfg.version++;
assert.commandWorked(primary.adminCommand({replSetReconfig: cfg}));
+// Make sure all nodes, including the once-removed node, have the final config.
+rst.waitForConfigReplication(primary);
+
rst.stopSet();
})();