diff options
author | Luis Osta <luis.osta@mongodb.com> | 2021-12-02 14:45:08 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-12-02 15:19:32 +0000 |
commit | c3402c98def4ce8b25609429ccb9e24fb4fe7cd0 (patch) | |
tree | 084c40f8e8e0d50b1a18e540ea2991cf52678216 /jstests/sharding | |
parent | 6d1b572c7ddbba652ffa49dc3783fbd27cec9714 (diff) | |
download | mongo-c3402c98def4ce8b25609429ccb9e24fb4fe7cd0.tar.gz |
SERVER-61461 Increase 'maxTransactionLockRequestTimeoutMillis' for tests
Diffstat (limited to 'jstests/sharding')
-rw-r--r-- | jstests/sharding/update_shard_key_doc_moves_shards.js | 7 | ||||
-rw-r--r-- | jstests/sharding/update_shard_key_doc_on_same_shard.js | 7 | ||||
-rw-r--r-- | jstests/sharding/update_shard_key_pipeline_update.js | 7 |
3 files changed, 18 insertions, 3 deletions
diff --git a/jstests/sharding/update_shard_key_doc_moves_shards.js b/jstests/sharding/update_shard_key_doc_moves_shards.js index 6ec4182d8ab..ef864f761f3 100644 --- a/jstests/sharding/update_shard_key_doc_moves_shards.js +++ b/jstests/sharding/update_shard_key_doc_moves_shards.js @@ -13,7 +13,12 @@ load("jstests/sharding/libs/sharded_transactions_helpers.js"); load("jstests/sharding/libs/update_shard_key_helpers.js"); -const st = new ShardingTest({mongos: 1, shards: {rs0: {nodes: 3}, rs1: {nodes: 3}}}); +const st = new ShardingTest({ + mongos: 1, + shards: {rs0: {nodes: 3}, rs1: {nodes: 3}}, + shardOptions: + {setParameter: {maxTransactionLockRequestTimeoutMillis: ReplSetTest.kDefaultTimeoutMS}} +}); const kDbName = 'db'; const mongos = st.s0; const shard0 = st.shard0.shardName; diff --git a/jstests/sharding/update_shard_key_doc_on_same_shard.js b/jstests/sharding/update_shard_key_doc_on_same_shard.js index 925c4d89bb5..c5f30b780fd 100644 --- a/jstests/sharding/update_shard_key_doc_on_same_shard.js +++ b/jstests/sharding/update_shard_key_doc_on_same_shard.js @@ -13,7 +13,12 @@ load("jstests/sharding/libs/sharded_transactions_helpers.js"); load("jstests/sharding/libs/update_shard_key_helpers.js"); -const st = new ShardingTest({mongos: 1, shards: {rs0: {nodes: 3}, rs1: {nodes: 3}}}); +const st = new ShardingTest({ + mongos: 1, + shards: {rs0: {nodes: 3}, rs1: {nodes: 3}}, + shardOptions: + {setParameter: {maxTransactionLockRequestTimeoutMillis: ReplSetTest.kDefaultTimeoutMS}} +}); const kDbName = 'db'; const ns = kDbName + '.foo'; const mongos = st.s0; diff --git a/jstests/sharding/update_shard_key_pipeline_update.js b/jstests/sharding/update_shard_key_pipeline_update.js index 3de7e15a934..850fe9af8b2 100644 --- a/jstests/sharding/update_shard_key_pipeline_update.js +++ b/jstests/sharding/update_shard_key_pipeline_update.js @@ -12,7 +12,12 @@ load("jstests/sharding/libs/sharded_transactions_helpers.js"); load("jstests/sharding/libs/update_shard_key_helpers.js"); -const st = new ShardingTest({mongos: 1, shards: {rs0: {nodes: 3}, rs1: {nodes: 3}}}); +const st = new ShardingTest({ + mongos: 1, + shards: {rs0: {nodes: 3}, rs1: {nodes: 3}}, + shardOptions: + {setParameter: {maxTransactionLockRequestTimeoutMillis: ReplSetTest.kDefaultTimeoutMS}} +}); const kDbName = 'db'; const mongos = st.s0; const shard0 = st.shard0.shardName; |