summaryrefslogtreecommitdiff
path: root/jstests/replsets
diff options
context:
space:
mode:
authorali-mir <ali.mir@mongodb.com>2022-10-12 18:29:20 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-10-12 19:16:10 +0000
commit00a9c713c7264d940774a2fb1c247ad02f5fac3a (patch)
treea40a2688d2f36f2eff37ea8016067cfba522d24e /jstests/replsets
parentc48dfb6dc05fa1c381b4b0b913ce57c47d2932c3 (diff)
downloadmongo-00a9c713c7264d940774a2fb1c247ad02f5fac3a.tar.gz
SERVER-70447 Wait for primary to complete shutdown before stopping set in force_shutdown_primary.js
Diffstat (limited to 'jstests/replsets')
-rw-r--r--jstests/replsets/force_shutdown_primary.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/replsets/force_shutdown_primary.js b/jstests/replsets/force_shutdown_primary.js
index 2f228df2ac2..47a56977fcf 100644
--- a/jstests/replsets/force_shutdown_primary.js
+++ b/jstests/replsets/force_shutdown_primary.js
@@ -71,5 +71,8 @@ assert.soonNoExcept(function() {
return true;
}, "expected primary node to shut down and not be connectable");
+// We need to ensure that the primary that is shutting down completes the shutdown
+// process before attempting to stop the set.
+MongoRunner.stopMongod(primary);
replTest.stopSet();
})();