summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib
diff options
context:
space:
mode:
authorseanzimm <sean.zimmerman@mongodb.com>2023-01-04 15:09:56 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-01-04 16:01:53 +0000
commitd1a67f12332e4ab92e43b24f192267a1f10574c3 (patch)
tree50e4e0231a989ebaa44f78938975d81ce42c3580 /buildscripts/resmokelib
parentd7185f9fc334223b956f4c668479849b933a1b89 (diff)
downloadmongo-d1a67f12332e4ab92e43b24f192267a1f10574c3.tar.gz
SERVER-72491: Remove random chance to immediately promote initial sync node
Diffstat (limited to 'buildscripts/resmokelib')
-rw-r--r--buildscripts/resmokelib/testing/hooks/continuous_initial_sync.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/buildscripts/resmokelib/testing/hooks/continuous_initial_sync.py b/buildscripts/resmokelib/testing/hooks/continuous_initial_sync.py
index 91b0cdcd705..5dabe3a6765 100644
--- a/buildscripts/resmokelib/testing/hooks/continuous_initial_sync.py
+++ b/buildscripts/resmokelib/testing/hooks/continuous_initial_sync.py
@@ -184,10 +184,7 @@ class _InitialSyncThread(threading.Thread):
for fixture in self._rs_fixtures:
self._await_initial_sync_done(fixture)
- # Coinflip whether to give the nodes some time as a secondaries or to
- # transition them to primary immediately.
- stage = random.choice(
- [SyncerStage.RUN_AS_SECONDARY, SyncerStage.INITSYNC_PRIMARY])
+ stage = SyncerStage.RUN_AS_SECONDARY
wait_secs = 0
# Nothing to be done. Just let the nodes stay as secondaries for the duration.