diff options
author | Benety Goh <benety@mongodb.com> | 2017-04-07 16:37:44 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2017-04-10 16:20:22 -0400 |
commit | 9df49e4e8b6b60106bbaad9f97d4457395ffacd0 (patch) | |
tree | 9577c3120e916caa4d8b129fbadac001f5899c66 | |
parent | 3dfb9f67d20188042ce019d2720593935da27b33 (diff) | |
download | mongo-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.js | 2 |
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(); |