summaryrefslogtreecommitdiff
path: root/jstests/hooks
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2019-11-07 18:50:48 +0000
committerevergreen <evergreen@mongodb.com>2019-11-07 18:50:48 +0000
commit26f431320c0f4d695365f013a2939c7b71758eec (patch)
treeaadd23a0c99913ae92e170d08020e7639eda38f2 /jstests/hooks
parent0046cdadcdd273cc730707ac6d47b60336829915 (diff)
downloadmongo-26f431320c0f4d695365f013a2939c7b71758eec.tar.gz
SERVER-44473 Disable implicit sessions for the background validation hook to prevent having it killed by tests
Diffstat (limited to 'jstests/hooks')
-rw-r--r--jstests/hooks/run_validate_collections_background.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/hooks/run_validate_collections_background.js b/jstests/hooks/run_validate_collections_background.js
index 7c5ff1fea4f..778ee791002 100644
--- a/jstests/hooks/run_validate_collections_background.js
+++ b/jstests/hooks/run_validate_collections_background.js
@@ -14,6 +14,10 @@ if (typeof db === 'undefined') {
"Expected mongo shell to be connected a server, but global 'db' object isn't defined");
}
+// Disable implicit sessions so FSM workloads that kill random sessions won't interrupt the
+// operations in this test that aren't resilient to interruptions.
+TestData.disableImplicitSessions = true;
+
const conn = db.getMongo();
const topology = DiscoverTopology.findConnectedNodes(conn);