diff options
author | Maria van Keulen <maria@mongodb.com> | 2018-05-25 11:37:57 -0400 |
---|---|---|
committer | Maria van Keulen <maria@mongodb.com> | 2018-06-04 16:34:31 -0400 |
commit | 52e32f10d3afb7b161747c7fac9a3cb2cf6bf618 (patch) | |
tree | 58aa6692acd25a53dfd3e730dc412cd98ef153a9 /buildscripts/resmokelib | |
parent | 229b3e3cc93c85810ccd9b8504e1f6e60514eb6d (diff) | |
download | mongo-52e32f10d3afb7b161747c7fac9a3cb2cf6bf618.tar.gz |
SERVER-34595 Increase transactionLifetimeLimitSeconds default in testing
(cherry picked from commit b82fe5e79018662c9c84e28b71034965d0dd836b)
Diffstat (limited to 'buildscripts/resmokelib')
-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 ebce06fb04d..1e8a0cff44c 100644 --- a/buildscripts/resmokelib/core/programs.py +++ b/buildscripts/resmokelib/core/programs.py @@ -201,6 +201,14 @@ def mongo_shell_program( # pylint: disable=too-many-branches,too-many-locals,to mongos_set_parameters = utils.load_yaml(config.MONGOS_SET_PARAMETERS) test_data["setParametersMongos"] = _format_test_data_set_parameters(mongos_set_parameters) + # There's a periodic background thread that checks for and aborts expired transactions. + # "transactionLifetimeLimitSeconds" specifies for how long a transaction can run before expiring + # and being aborted by the background thread. It defaults to 60 seconds, which is too short to + # be reliable for our tests. Setting it to 3 hours, so that it is longer than the 2 hours we + # allow JS tests to run before timing them out. + if "transactionLifetimeLimitSeconds" not in test_data: + test_data["transactionLifetimeLimitSeconds"] = 3 * 60 * 60 + if "eval_prepend" in kwargs: eval_sb.append(str(kwargs.pop("eval_prepend"))) |