summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib/core/programs.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/resmokelib/core/programs.py')
-rw-r--r--buildscripts/resmokelib/core/programs.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/buildscripts/resmokelib/core/programs.py b/buildscripts/resmokelib/core/programs.py
index 3865d33b8b0..de0eaa3c49f 100644
--- a/buildscripts/resmokelib/core/programs.py
+++ b/buildscripts/resmokelib/core/programs.py
@@ -82,6 +82,11 @@ def mongod_program( # pylint: disable=too-many-branches
if "replSet" in kwargs and "writePeriodicNoops" not in suite_set_parameters:
suite_set_parameters["writePeriodicNoops"] = False
+ # By default the primary waits up to 10 sec to complete a stepdown and to hand off its duties to
+ # a secondary before shutting down in response to SIGTERM. Make it shut down more abruptly.
+ if "replSet" in kwargs and "waitForStepDownOnNonCommandShutdown" not in suite_set_parameters:
+ suite_set_parameters["waitForStepDownOnNonCommandShutdown"] = False
+
_apply_set_parameters(args, suite_set_parameters)
shortcut_opts = {