summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Nawrocki <brett.nawrocki@mongodb.com>2021-10-22 18:43:10 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-11-12 19:24:33 +0000
commit1ffa2d6dd11f62fba37669b15f39b98fc782f4c3 (patch)
treed8a5ed28566772905397b2f8074dc5140e431594
parent12682a2d8259210a7ab19606985de31fefde252b (diff)
downloadmongo-1ffa2d6dd11f62fba37669b15f39b98fc782f4c3.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.js17
1 files changed, 11 insertions, 6 deletions
diff --git a/jstests/sharding/resharding_large_number_of_initial_chunks.js.js b/jstests/sharding/resharding_large_number_of_initial_chunks.js.js
index 1a5d3a6d427..bee377d60d4 100644
--- a/jstests/sharding/resharding_large_number_of_initial_chunks.js.js
+++ b/jstests/sharding/resharding_large_number_of_initial_chunks.js.js
@@ -12,11 +12,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';
@@ -26,7 +32,6 @@ const mongos = st.s;
assert.commandWorked(mongos.adminCommand({enableSharding: kDbName}));
assert.commandWorked(mongos.adminCommand({shardCollection: ns, key: {oldKey: 1}}));
-// TODO SERVER-SERVER-57095 increase the number of zones
let nZones = 10000;
let zones = [];
let shard0Zones = [];