summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVesselina Ratcheva <vesselina.ratcheva@10gen.com>2020-09-12 00:39:17 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-10-26 02:03:44 +0000
commit81cbd36ae0619c450aff98c96e2bbaa4750cea3c (patch)
treefe4c9bd582ccb72b967118ccf50879c73cb69dba
parent5f66c3fa2af530e5f9242758eef87846d564fe96 (diff)
downloadmongo-81cbd36ae0619c450aff98c96e2bbaa4750cea3c.tar.gz
SERVER-49462 Wait for secondaries to be ready in ReplSetTest.checkOplogs
(cherry picked from commit 22a77301a5b63b9bb7ef6dd73eabb4865c63a921)
-rw-r--r--src/mongo/shell/replsettest.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/shell/replsettest.js b/src/mongo/shell/replsettest.js
index 63be94d757c..07c7ee05d40 100644
--- a/src/mongo/shell/replsettest.js
+++ b/src/mongo/shell/replsettest.js
@@ -2559,6 +2559,8 @@ var ReplSetTest = function(opts) {
}
print("checkOplogs starting oplog checks.");
+ print("checkOplogs waiting for secondaries to be ready.");
+ this.awaitSecondaryNodes(self.kDefaultTimeoutMS, slaves);
if (slaves.length >= 1) {
let readers = [];
let smallestTS = new Timestamp(Math.pow(2, 32) - 1, Math.pow(2, 32) - 1);