summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2019-08-31 10:30:45 +0000
committerevergreen <evergreen@mongodb.com>2019-08-31 10:30:45 +0000
commit6f308bbc6f495da46029b6e6316189a14e7842a3 (patch)
treea99520176a7dc222feb7ec9c41af1f5f59d12807
parent927a3e19e74a78219f18aff79a18dc70b2ac5eba (diff)
downloadmongo-6f308bbc6f495da46029b6e6316189a14e7842a3.tar.gz
SERVER-42602 retry replSetFreeze on rollback node in tests if replica set config has not been loaded
-rw-r--r--jstests/replsets/libs/rollback_test.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/jstests/replsets/libs/rollback_test.js b/jstests/replsets/libs/rollback_test.js
index a72a31d7835..80466be04c9 100644
--- a/jstests/replsets/libs/rollback_test.js
+++ b/jstests/replsets/libs/rollback_test.js
@@ -459,6 +459,9 @@ function RollbackTest(name = "RollbackTest", replSet) {
if (e.code === ErrorCodes.NotSecondary) {
return false;
}
+ if (e.code === ErrorCodes.NotYetInitialized) {
+ return false;
+ }
throw e;
}
}, `Failed to run replSetFreeze cmd on ${curSecondary.host}`);