diff options
author | Daniel Gottlieb <daniel.gottlieb@mongodb.com> | 2021-02-18 13:00:03 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-22 15:40:58 +0000 |
commit | 48a10f5e9f66cc41a35cab593e55c5f0b749ca3e (patch) | |
tree | e7139133b186eeb0fb1a9f1d20acfb5ee57a696e | |
parent | ef416583d74e5ed6adb7c43d0a1cae786fd90bee (diff) | |
download | mongo-48a10f5e9f66cc41a35cab593e55c5f0b749ca3e.tar.gz |
SERVER-54577: Have tests using `testReshardCloneCollection` explicitly preserve history.
-rw-r--r-- | jstests/sharding/resharding_collection_cloner.js | 12 | ||||
-rw-r--r-- | jstests/sharding/resharding_collection_cloner_resuming.js | 12 |
2 files changed, 22 insertions, 2 deletions
diff --git a/jstests/sharding/resharding_collection_cloner.js b/jstests/sharding/resharding_collection_cloner.js index e9c96cb53b6..5dceb8e98a2 100644 --- a/jstests/sharding/resharding_collection_cloner.js +++ b/jstests/sharding/resharding_collection_cloner.js @@ -12,7 +12,17 @@ load("jstests/libs/uuid_util.js"); load("jstests/sharding/libs/create_sharded_collection_util.js"); -const st = new ShardingTest({mongos: 1, config: 1, shards: 2, rs: {nodes: 3}}); +const st = new ShardingTest({ + mongos: 1, + config: 1, + shards: 2, + rs: {nodes: 3}, + rsOptions: { + setParameter: { + "failpoint.WTPreserveSnapshotHistoryIndefinitely": tojson({mode: "alwaysOn"}), + } + }, +}); const inputCollection = st.s.getCollection("reshardingDb.coll"); diff --git a/jstests/sharding/resharding_collection_cloner_resuming.js b/jstests/sharding/resharding_collection_cloner_resuming.js index d8a1b438eda..cf9ec1b7f34 100644 --- a/jstests/sharding/resharding_collection_cloner_resuming.js +++ b/jstests/sharding/resharding_collection_cloner_resuming.js @@ -12,7 +12,17 @@ load("jstests/libs/uuid_util.js"); load("jstests/sharding/libs/create_sharded_collection_util.js"); -const st = new ShardingTest({mongos: 1, config: 1, shards: 2, rs: {nodes: 1}}); +const st = new ShardingTest({ + mongos: 1, + config: 1, + shards: 2, + rs: {nodes: 1}, + rsOptions: { + setParameter: { + "failpoint.WTPreserveSnapshotHistoryIndefinitely": tojson({mode: "alwaysOn"}), + } + }, +}); const inputCollection = st.s.getCollection("reshardingDb.coll"); |