diff options
author | Louis Williams <louis.williams@mongodb.com> | 2020-06-17 11:09:28 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-06-17 16:51:43 +0000 |
commit | 6947b03638c1c3ed0fe76c579c1b27725933cf09 (patch) | |
tree | 2bd5a7c866ee1491ba4157e56b06802995b16a9c /jstests/replsets/dont_read_oplog_hole_on_step_up.js | |
parent | 59235bae1cbfa1ebdd2b2a12857e4f160a9afe70 (diff) | |
download | mongo-6947b03638c1c3ed0fe76c579c1b27725933cf09.tar.gz |
SERVER-48919 dont_read_oplog_hole_on_step_up.js should wait until primary is writable
Diffstat (limited to 'jstests/replsets/dont_read_oplog_hole_on_step_up.js')
-rw-r--r-- | jstests/replsets/dont_read_oplog_hole_on_step_up.js | 4 |
1 files changed, 3 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 76408727f50..4d42eb3c299 100644 --- a/jstests/replsets/dont_read_oplog_hole_on_step_up.js +++ b/jstests/replsets/dont_read_oplog_hole_on_step_up.js @@ -53,7 +53,9 @@ const planExecFP = configureFailPoint(newPrimary, "planExecutorHangWhileYieldedI jsTestLog("Stepping up new primary"); assert.commandWorked(newPrimary.adminCommand({replSetStepUp: 1})); -rst.awaitNodesAgreeOnPrimary(rst.kDefaultTimeoutMS, nodes, rst.getNodeId(newPrimary)); + +// Wait for the node to transition to primary and accept writes. +assert.eq(newPrimary, rst.getPrimary()); const createCollFP = configureFailPoint(newPrimary, "hangBeforeLoggingCreateCollection"); const createShell = startParallelShell(() => { |