diff options
author | seanzimm <sean.zimmerman@mongodb.com> | 2023-01-04 15:09:56 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-01-04 16:01:53 +0000 |
commit | d1a67f12332e4ab92e43b24f192267a1f10574c3 (patch) | |
tree | 50e4e0231a989ebaa44f78938975d81ce42c3580 /buildscripts/resmokelib | |
parent | d7185f9fc334223b956f4c668479849b933a1b89 (diff) | |
download | mongo-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.py | 5 |
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. |