diff options
author | Silvia Surroca <silvia.surroca@mongodb.com> | 2023-04-17 13:30:20 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-04-17 14:07:09 +0000 |
commit | da6aad367c29106aefb8cce21299dc46c6cdfdcd (patch) | |
tree | a9556a644386f151754a6da61214b8517fe3aa5c /src/mongo/shell | |
parent | e7c4c3d068c1c5f09215c786f2c55f74d4e28d97 (diff) | |
download | mongo-da6aad367c29106aefb8cce21299dc46c6cdfdcd.tar.gz |
SERVER-76064 Increase receiveChunkWaitForRangeDeleterTimeoutMS default value in jstests
Diffstat (limited to 'src/mongo/shell')
-rw-r--r-- | src/mongo/shell/servers.js | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/mongo/shell/servers.js b/src/mongo/shell/servers.js index 2e6e5bbbb2e..356b728f0d5 100644 --- a/src/mongo/shell/servers.js +++ b/src/mongo/shell/servers.js @@ -1518,11 +1518,16 @@ function appendSetParameterArgs(argArray) { } } - // TODO: Make this unconditional in 3.8. - if (programMajorMinorVersion > 340) { - if (!argArrayContainsSetParameterValue('orphanCleanupDelaySecs=')) { - argArray.push(...['--setParameter', 'orphanCleanupDelaySecs=1']); - } + // Reduce the default value for `orphanCleanupDelaySecs` to 1 sec to speed up jstests. + if (!argArrayContainsSetParameterValue('orphanCleanupDelaySecs=')) { + argArray.push(...['--setParameter', 'orphanCleanupDelaySecs=1']); + } + + // Increase the default value for `receiveChunkWaitForRangeDeleterTimeoutMS` to 90 + // seconds to prevent failures due to occasional slow range deletions + if (!argArrayContainsSetParameterValue('receiveChunkWaitForRangeDeleterTimeoutMS=')) { + argArray.push( + ...['--setParameter', 'receiveChunkWaitForRangeDeleterTimeoutMS=90000']); } if (programMajorMinorVersion >= 360) { |