summaryrefslogtreecommitdiff
path: root/jstests/replsets/prepare_conflict_read_concern_behavior.js
diff options
context:
space:
mode:
authorAli Mir <ali.mir@mongodb.com>2020-05-14 14:25:09 -0400
committerAli Mir <ali.mir@mongodb.com>2020-05-29 00:06:40 -0400
commit7434646ab0c2f94c4ae1cdefc1b5c3764964eb30 (patch)
tree4f1f4bc529023333ec87cd2bb7d04805a334a19c /jstests/replsets/prepare_conflict_read_concern_behavior.js
parente44e6b4f3c0b7fbd604a452ac8afc59dda3f54fa (diff)
downloadmongo-7434646ab0c2f94c4ae1cdefc1b5c3764964eb30.tar.gz
SERVER-44782 Support atClusterTime in dbHash commandSERVER-47782
Diffstat (limited to 'jstests/replsets/prepare_conflict_read_concern_behavior.js')
-rw-r--r--jstests/replsets/prepare_conflict_read_concern_behavior.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/jstests/replsets/prepare_conflict_read_concern_behavior.js b/jstests/replsets/prepare_conflict_read_concern_behavior.js
index 4ad65f75506..7b092198dc0 100644
--- a/jstests/replsets/prepare_conflict_read_concern_behavior.js
+++ b/jstests/replsets/prepare_conflict_read_concern_behavior.js
@@ -26,7 +26,19 @@
"use strict";
load("jstests/core/txns/libs/prepare_helpers.js");
-const replTest = new ReplSetTest({nodes: 2});
+// Snapshot read concern for the dbHash command is only available when enableTestCommands=true.
+// To test correctly client behavior with dbHash, we set enableTestCommands=false. We modify the
+// values of roleGraphInvalidationIsFatal and authenticationDatabase in order for this test to work
+// on inMemory build variants.
+TestData.enableTestCommands = false;
+TestData.roleGraphInvalidationIsFatal = false;
+TestData.authenticationDatabase = "local";
+const replTest = new ReplSetTest({
+ nodes: {
+ node0: {setParameter: "enableTestCommands=1"},
+ node1: {setParameter: "enableTestCommands=0"}
+ }
+});
replTest.startSet();
replTest.initiate();