summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2020-09-09 13:11:53 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-09-09 23:05:58 +0000
commit2754f773534564c069c832f35cc0e84edd306d95 (patch)
tree874a9d8d9e4ee7b8af1028ec305d29be0da2f24e
parent3885be271487bf1849a1cd5da1215795a3e21477 (diff)
downloadmongo-2754f773534564c069c832f35cc0e84edd306d95.tar.gz
SERVER-50822 dont_read_oplog_hole_on_step_up.js should wait for all nodes to agree on a primary
-rw-r--r--jstests/replsets/dont_read_oplog_hole_on_step_up.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jstests/replsets/dont_read_oplog_hole_on_step_up.js b/jstests/replsets/dont_read_oplog_hole_on_step_up.js
index 44c5db9a3b5..ab9b58f8169 100644
--- a/jstests/replsets/dont_read_oplog_hole_on_step_up.js
+++ b/jstests/replsets/dont_read_oplog_hole_on_step_up.js
@@ -53,6 +53,7 @@ const planExecFP = configureFailPoint(newPrimary, "planExecutorHangWhileYieldedI
jsTestLog("Stepping up new primary");
assert.commandWorked(newPrimary.adminCommand({replSetStepUp: 1}));
+rst.awaitNodesAgreeOnPrimary();
assert.eq(newPrimary, rst.getPrimary());
const createCollFP = configureFailPoint(newPrimary, "hangBeforeLoggingCreateCollection");
@@ -83,4 +84,4 @@ createShell();
rst.awaitReplication();
rst.stopSet();
-}()); \ No newline at end of file
+}());