diff options
author | William Schultz <william.schultz@mongodb.com> | 2020-01-13 23:31:48 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2020-01-13 23:31:48 +0000 |
commit | 9d41c52dd9b2d5e49ec997bab268b1fed54b0ce4 (patch) | |
tree | c03cc25909cadcf0bf5de0a843f6aaafa2851dad | |
parent | fa836e4fe1a7b5fc7f94abffa951a2d864069a2f (diff) | |
download | mongo-9d41c52dd9b2d5e49ec997bab268b1fed54b0ce4.tar.gz |
SERVER-34876 Wait for initial sync to finish before reading from oplog in
initial_sync_with_write_load.js
(cherry picked from commit b0e0fde694a63157e9a1d46cde0b8117cb7ad05c)
-rw-r--r-- | jstests/replsets/initial_sync_with_write_load.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/replsets/initial_sync_with_write_load.js b/jstests/replsets/initial_sync_with_write_load.js index 2abbb878cb4..180487abe50 100644 --- a/jstests/replsets/initial_sync_with_write_load.js +++ b/jstests/replsets/initial_sync_with_write_load.js @@ -90,6 +90,9 @@ assert.soon(function() { print("waiting for load generation to finish"); loadGen(); +// Wait for initial sync to finish. +replTest.awaitSecondaryNodes(); + // Make sure oplogs & dbHashes match replTest.checkOplogs(testName); replTest.checkReplicatedDataHashes(testName); |