diff options
author | Brett Nawrocki <brett.nawrocki@mongodb.com> | 2021-10-22 18:43:10 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-11-12 19:23:32 +0000 |
commit | 23b9248306f2c8e96d58805efddb20334b6eab3c (patch) | |
tree | d143a12a5c8d83b2955e6c124986040bd6b208db | |
parent | fbbb0eee2d0f0e26c56dc9bbb3406b47fc7b91cc (diff) | |
download | mongo-23b9248306f2c8e96d58805efddb20334b6eab3c.tar.gz |
SERVER-60945 Increase critical section timeout for resharding test
Resharding test fixture sets the value for resharding critical section
timeout server parameter to 24 hours.
resharding_large_number_of_initial_chunks.js does not use resharding
test fixture and so uses the default value of 5 seconds. This can cause
spurious failures during periods of time where the test hosts are being
particularly slow. Therefore, the timeout has been increased to 24
hours.
(cherry picked from commit 05ee839a82125135f6640de3a62f937abbdbb3bc)
-rw-r--r-- | jstests/sharding/resharding_large_number_of_initial_chunks.js | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/jstests/sharding/resharding_large_number_of_initial_chunks.js b/jstests/sharding/resharding_large_number_of_initial_chunks.js index accb9f2a94a..798131c0fb8 100644 --- a/jstests/sharding/resharding_large_number_of_initial_chunks.js +++ b/jstests/sharding/resharding_large_number_of_initial_chunks.js @@ -13,11 +13,17 @@ load("jstests/sharding/libs/find_chunks_util.js"); -// The total size of the zones and chunks documents that the config server writes in a single -// replica set transaction totals to around 60 MB. WWhen combined with the other operations and -// transactions occurring in the config server, this large transaction causes WiredTiger to run out -// of dirty cache space. Hence, we need to increase the wiredTigerCacheSizeGB to 1 GB. -const st = new ShardingTest({mongos: 1, shards: 2, config: 1}); +const st = new ShardingTest({ + mongos: 1, + shards: 2, + config: 1, + other: { + configOptions: { + setParameter: + {reshardingCriticalSectionTimeoutMillis: 24 * 60 * 60 * 1000 /* 1 day */} + } + } +}); const kDbName = 'db'; const collName = 'foo'; @@ -27,8 +33,6 @@ const mongos = st.s; assert.commandWorked(mongos.adminCommand({enableSharding: kDbName})); assert.commandWorked(mongos.adminCommand({shardCollection: ns, key: {oldKey: 1}})); -// In debug builds, the resharding operation takes significantly longer when there's a large number -// of chunks and zones. We reduce nZones so the test completes in a reasonable amount of time. let nZones = 10000; let zones = []; let shard0Zones = []; |