diff options
author | Pavi Vetriselvan <pvselvan@umich.edu> | 2020-04-27 16:19:56 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-04-29 13:37:33 +0000 |
commit | 81d53a715f49827a9f2538d4572f9b01f2b12887 (patch) | |
tree | f4037c752a140c230be091094213b4d9aaf3432d /buildscripts/resmokelib/testing/fixtures/replicaset.py | |
parent | a1b1a3db6286e9337d80602a79c905ee41828e03 (diff) | |
download | mongo-81d53a715f49827a9f2538d4572f9b01f2b12887.tar.gz |
SERVER-47544 always increase election timeout to 24 hours in passthrough suites
Diffstat (limited to 'buildscripts/resmokelib/testing/fixtures/replicaset.py')
-rw-r--r-- | buildscripts/resmokelib/testing/fixtures/replicaset.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/buildscripts/resmokelib/testing/fixtures/replicaset.py b/buildscripts/resmokelib/testing/fixtures/replicaset.py index 9679c27766d..8eac4f7ffbc 100644 --- a/buildscripts/resmokelib/testing/fixtures/replicaset.py +++ b/buildscripts/resmokelib/testing/fixtures/replicaset.py @@ -191,12 +191,10 @@ class ReplicaSetFixture(interface.ReplFixture): # pylint: disable=too-many-inst replset_settings = self.replset_config_options["settings"] repl_config["settings"] = replset_settings - # If not all nodes are electable and no election timeout was specified, then we increase - # the election timeout to 24 hours to prevent spurious elections. - if not self.all_nodes_electable: - repl_config.setdefault("settings", {}) - if "electionTimeoutMillis" not in repl_config["settings"]: - repl_config["settings"]["electionTimeoutMillis"] = 24 * 60 * 60 * 1000 + # Increase the election timeout to 24 hours to prevent spurious elections. + repl_config.setdefault("settings", {}) + if "electionTimeoutMillis" not in repl_config["settings"]: + repl_config["settings"]["electionTimeoutMillis"] = 24 * 60 * 60 * 1000 # Start up a single node replica set then reconfigure to the correct size (if the config # contains more than 1 node), so the primary is elected more quickly. |