From 88e9f23bf6729409b098b6a9176fc9dd54dbd28d Mon Sep 17 00:00:00 2001 From: Matt Broadstone Date: Mon, 24 Oct 2022 13:42:47 +0000 Subject: SERVER-70571 Set reasonable value for shard split timeout --- jstests/serverless/shard_split_concurrent_reads_on_donor_blocking.js | 4 +++- jstests/serverless/shard_split_concurrent_writes_on_donor_blocking.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'jstests') 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(); -- cgit v1.2.1