diff options
author | Matt Broadstone <mbroadst@mongodb.com> | 2022-10-24 13:42:47 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-10-24 14:58:15 +0000 |
commit | 88e9f23bf6729409b098b6a9176fc9dd54dbd28d (patch) | |
tree | 813f5023ecd6c41fb34b81b9f46df0e0b46985d9 /jstests | |
parent | 77779ea639eae6988e85609c036f99d283a854a8 (diff) | |
download | mongo-88e9f23bf6729409b098b6a9176fc9dd54dbd28d.tar.gz |
SERVER-70571 Set reasonable value for shard split timeout
Diffstat (limited to 'jstests')
-rw-r--r-- | jstests/serverless/shard_split_concurrent_reads_on_donor_blocking.js | 4 | ||||
-rw-r--r-- | jstests/serverless/shard_split_concurrent_writes_on_donor_blocking.js | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/jstests/serverless/shard_split_concurrent_reads_on_donor_blocking.js b/jstests/serverless/shard_split_concurrent_reads_on_donor_blocking.js index bbd9138bb70..409b2ecdcb4 100644 --- a/jstests/serverless/shard_split_concurrent_reads_on_donor_blocking.js +++ b/jstests/serverless/shard_split_concurrent_reads_on_donor_blocking.js @@ -65,7 +65,9 @@ const tenantId = "tenantId"; const test = new ShardSplitTest({ recipientTagName: "recipientTag", recipientSetName: "recipientSet", - quickGarbageCollection: true + quickGarbageCollection: true, + // Increase timeout because blocking in the critical section contributes to operation latency. + nodeOptions: {setParameter: {shardSplitTimeoutMS: 100000}} }); test.addRecipientNodes(); diff --git a/jstests/serverless/shard_split_concurrent_writes_on_donor_blocking.js b/jstests/serverless/shard_split_concurrent_writes_on_donor_blocking.js index 01de40772a1..b6e53662901 100644 --- a/jstests/serverless/shard_split_concurrent_writes_on_donor_blocking.js +++ b/jstests/serverless/shard_split_concurrent_writes_on_donor_blocking.js @@ -29,7 +29,9 @@ const tenantMigrationTest = new ShardSplitTest({ recipientSetName, quickGarbageCollection: true, allowStaleReadsOnDonor: true, - initiateWithShortElectionTimeout: true + initiateWithShortElectionTimeout: true, + // Increase timeout because blocking in the critical section contributes to operation latency. + nodeOptions: {setParameter: {shardSplitTimeoutMS: 100000}} }); const donorPrimary = tenantMigrationTest.getDonorPrimary(); |