summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2017-04-07 16:37:44 -0400
committerBenety Goh <benety@mongodb.com>2017-04-10 16:20:22 -0400
commit9df49e4e8b6b60106bbaad9f97d4457395ffacd0 (patch)
tree9577c3120e916caa4d8b129fbadac001f5899c66
parent3dfb9f67d20188042ce019d2720593935da27b33 (diff)
downloadmongo-9df49e4e8b6b60106bbaad9f97d4457395ffacd0.tar.gz
SERVER-28695 step_down_during_draining.js should wait for writes to be durable before disable replication on secondaries using fail point
-rw-r--r--jstests/replsets/step_down_during_draining.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/replsets/step_down_during_draining.js b/jstests/replsets/step_down_during_draining.js
index c4592bf2146..95a3b2946f8 100644
--- a/jstests/replsets/step_down_during_draining.js
+++ b/jstests/replsets/step_down_during_draining.js
@@ -58,7 +58,7 @@ load("jstests/replsets/rslib.js");
var numDocuments = 20;
var coll = primary.getDB("foo").foo;
assert.writeOK(coll.insert({x: 0}, {writeConcern: {w: 3}}));
- replSet.awaitReplication();
+ replSet.awaitReplication(ReplSetTest.kDefaultTimeoutMS, ReplSetTest.OpTimeType.LAST_DURABLE);
// Enable fail point to stop replication.
var secondaries = replSet.getSecondaries();