diff options
author | Benety Goh <benety@mongodb.com> | 2019-08-31 10:30:45 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-08-31 10:30:45 +0000 |
commit | 6f308bbc6f495da46029b6e6316189a14e7842a3 (patch) | |
tree | a99520176a7dc222feb7ec9c41af1f5f59d12807 | |
parent | 927a3e19e74a78219f18aff79a18dc70b2ac5eba (diff) | |
download | mongo-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.js | 3 |
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}`); |