diff options
author | Antonio Fuschetto <antonio.fuschetto@mongodb.com> | 2021-04-30 08:04:51 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-04-30 11:46:50 +0000 |
commit | aba6362a89c920f1cce08631b1abdcdd32d539c4 (patch) | |
tree | 61cff8edb88f1a715d9a8f4e8b62683cfdf5b8d0 | |
parent | be9319f442417777e400b7b11e140675f2ece4e6 (diff) | |
download | mongo-aba6362a89c920f1cce08631b1abdcdd32d539c4.tar.gz |
SERVER-56257 Increase minSnapshotHistoryWindowInSeconds in non_transaction_snapshot_errors.js test
-rw-r--r-- | jstests/sharding/non_transaction_snapshot_errors.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/jstests/sharding/non_transaction_snapshot_errors.js b/jstests/sharding/non_transaction_snapshot_errors.js index f7d02fcd109..455096349a5 100644 --- a/jstests/sharding/non_transaction_snapshot_errors.js +++ b/jstests/sharding/non_transaction_snapshot_errors.js @@ -25,6 +25,8 @@ const dbName = "test"; const collName = "foo"; const ns = dbName + '.' + collName; +const kMinSnapshotHistoryWindowInSeconds = 300; + const kCommandTestCases = [ {name: "aggregate", command: {aggregate: collName, pipeline: [], cursor: {}}}, {name: "find", command: {find: collName}}, @@ -89,7 +91,15 @@ function runTest(st, numShardsToError, errorCode, isSharded) { } } -const st = new ShardingTest({shards: 2, mongos: 1, config: 1}); +const st = new ShardingTest({ + shards: 2, + mongos: 1, + config: 1, + other: { + shardOptions: + {setParameter: {minSnapshotHistoryWindowInSeconds: kMinSnapshotHistoryWindowInSeconds}} + } +}); jsTestLog("Unsharded snapshot read"); |