summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamy Lanka <samy.lanka@mongodb.com>2021-02-12 20:56:02 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-03-08 21:45:44 +0000
commit347e5cc5daf62be43c545f4071f250abefc9ebc3 (patch)
treeda8253e45879b1c91ba5e7359d7eebc60770e6fa
parent5ca46280b600086bf72c3230d957a5b4972a6e64 (diff)
downloadmongo-347e5cc5daf62be43c545f4071f250abefc9ebc3.tar.gz
SERVER-54528 Avoid race between initial sync failing and shutdown in initial_sync_fails_when_source_removed.js
(cherry picked from commit aaec1aab2980ad27f738c6f3bbc9bd186c4ef918)
-rw-r--r--jstests/replsets/initial_sync_fails_when_source_removed.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/jstests/replsets/initial_sync_fails_when_source_removed.js b/jstests/replsets/initial_sync_fails_when_source_removed.js
index a93ad319276..28d2dfed6da 100644
--- a/jstests/replsets/initial_sync_fails_when_source_removed.js
+++ b/jstests/replsets/initial_sync_fails_when_source_removed.js
@@ -75,7 +75,6 @@ beforeFinishFailPoint.wait();
const res = assert.commandWorked(initialSyncNode.adminCommand({replSetGetStatus: 1}));
// The initial sync should have failed.
assert.eq(res.initialSyncStatus.failedInitialSyncAttempts, 1);
-beforeFinishFailPoint.off();
// We skip validation and dbhashes because the initial sync failed so the initial sync node is
// invalid and unreachable.