summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2017-04-14 16:45:23 -0400
committerJudah Schvimer <judah@mongodb.com>2017-04-14 17:23:05 -0400
commit184df63e8e87a9b6ebdb9d86e7b652422a8cf1a4 (patch)
treef0dabc807ae82702b75919c4b808e5157f5a37eb
parentc121509fa44611cfb883263cf748ebcdfcf55b49 (diff)
downloadmongo-184df63e8e87a9b6ebdb9d86e7b652422a8cf1a4.tar.gz
SERVER-28384 apply_batch_only_goes_forward.js should call ReplSetTest.awaitNodesAgreeOnPrimary() before getting primary to write document
-rw-r--r--jstests/replsets/apply_batch_only_goes_forward.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/jstests/replsets/apply_batch_only_goes_forward.js b/jstests/replsets/apply_batch_only_goes_forward.js
index 2b91d042d49..09455a8bb59 100644
--- a/jstests/replsets/apply_batch_only_goes_forward.js
+++ b/jstests/replsets/apply_batch_only_goes_forward.js
@@ -69,6 +69,7 @@
printjson(sLocal.adminCommand("isMaster"));
replTest.waitForState(master, ReplSetTest.State.RECOVERING);
+ replTest.awaitNodesAgreeOnPrimary();
// Slave is now master... Do a write to advance the optime on the primary so that it will be
// considered as a sync source - this is more relevant to PV0 because we do not write a new
// entry to the oplog on becoming primary.