summaryrefslogtreecommitdiff
path: root/jstests/sharding/session_info_in_oplog.js
diff options
context:
space:
mode:
authorDaniel Gottlieb <daniel.gottlieb@mongodb.com>2021-05-17 22:26:46 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-05-18 02:58:27 +0000
commit162e0d14fe2944b8e782263539944d41f1f3d0c9 (patch)
tree9e4cda8ad9d8add760fb38fa9be06ed363b20ba8 /jstests/sharding/session_info_in_oplog.js
parentb0e213e963fe9ca76fb07212c6c2a1c9316af060 (diff)
downloadmongo-162e0d14fe2944b8e782263539944d41f1f3d0c9.tar.gz
SERVER-56953: Allow testing for new-style retryable findAndModify for basic operations.
Diffstat (limited to 'jstests/sharding/session_info_in_oplog.js')
-rw-r--r--jstests/sharding/session_info_in_oplog.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/jstests/sharding/session_info_in_oplog.js b/jstests/sharding/session_info_in_oplog.js
index a7644fca599..3ad935aa3b6 100644
--- a/jstests/sharding/session_info_in_oplog.js
+++ b/jstests/sharding/session_info_in_oplog.js
@@ -323,7 +323,12 @@ var runTests = function(mainConn, priConn, secConn) {
lastTs = firstDoc.ts;
};
-var replTest = new ReplSetTest({nodes: kNodes});
+// This test specifically looks for side-effects of writing retryable findAndModify images into the
+// oplog as noops. Ensure images are not stored in a side collection.
+var replTest = new ReplSetTest({
+ nodes: kNodes,
+ nodeOptions: {setParameter: {storeFindAndModifyImagesInSideCollection: false}}
+});
replTest.startSet();
replTest.initiate();
@@ -335,7 +340,9 @@ runTests(priConn, priConn, secConn);
replTest.stopSet();
-var st = new ShardingTest({shards: {rs0: {nodes: kNodes}}});
+var st = new ShardingTest({
+ shards: {rs0: {nodes: kNodes, setParameter: {storeFindAndModifyImagesInSideCollection: false}}}
+});
secConn = st.rs0.getSecondary();
secConn.setSecondaryOk();