diff options
author | William Schultz <william.schultz@mongodb.com> | 2020-06-11 22:55:28 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-06-12 03:09:39 +0000 |
commit | 15d91aaf3793f1a93b6b1774d8eb55af7888cce8 (patch) | |
tree | f63b38a57ad30303f43ce497e582bab3bbd5d0ea /buildscripts | |
parent | cc80078a7c3c2469ee6de39791cf0288e6771ef1 (diff) | |
download | mongo-15d91aaf3793f1a93b6b1774d8eb55af7888cce8.tar.gz |
SERVER-48707 Move replication recovery invariant behind test only flag
Diffstat (limited to 'buildscripts')
-rw-r--r-- | buildscripts/resmokelib/core/programs.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/buildscripts/resmokelib/core/programs.py b/buildscripts/resmokelib/core/programs.py index e4e64bf21a2..eebd51c68bc 100644 --- a/buildscripts/resmokelib/core/programs.py +++ b/buildscripts/resmokelib/core/programs.py @@ -182,6 +182,11 @@ def mongod_program( # pylint: disable=too-many-branches,too-many-statements "mode": "alwaysOn", "data": {"numTickets": config.FLOW_CONTROL_TICKETS} } + # Always enable this invariant for testing. + if "assertStableTimestampEqualsAppliedThroughOnRecovery" not in suite_set_parameters and \ + executable != LAST_STABLE_MONGOD_BINARY: + suite_set_parameters["assertStableTimestampEqualsAppliedThroughOnRecovery"] = True + _apply_set_parameters(args, suite_set_parameters) shortcut_opts = { @@ -343,6 +348,9 @@ def mongo_shell_program( # pylint: disable=too-many-branches,too-many-locals,to if config.FLOW_CONTROL is not None: mongod_set_parameters.setdefault("enableFlowControl", config.FLOW_CONTROL == "on") + # Always enable this invariant in tests. + mongod_set_parameters.setdefault("assertStableTimestampEqualsAppliedThroughOnRecovery", True) + # If the 'logComponentVerbosity' setParameter for mongos was not already specified, we set its # value to a default. mongos_set_parameters.setdefault("logComponentVerbosity", |