diff options
author | Daniel Gottlieb <daniel.gottlieb@mongodb.com> | 2021-05-18 13:00:56 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-05-19 02:34:25 +0000 |
commit | 7fbf9380ae9d4210b8486e6ca35b56e9c4291f13 (patch) | |
tree | 17e48ac982ef1a2377a040dec19fc5add37c9173 /jstests/sharding/session_info_in_oplog.js | |
parent | aefb1ac44425c13e8803ff72a3c7fcb194ee599c (diff) | |
download | mongo-7fbf9380ae9d4210b8486e6ca35b56e9c4291f13.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.js | 11 |
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(); |