SERVER-46948 Increase shutdown timeoutSecs on mongod

This commit is contained in:
Tess Avitabile 2020-04-01 15:44:56 -04:00 committed by Evergreen Agent
parent 748ca39b28
commit 27dd10adb5
2 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ public:
BSONObjBuilder& result) {
bool force = cmdObj.hasField("force") && cmdObj["force"].trueValue();
long long timeoutSecs = 10;
long long timeoutSecs = 15;
if (cmdObj.hasField("timeoutSecs")) {
timeoutSecs = cmdObj["timeoutSecs"].numberLong();
}

View File

@ -1063,7 +1063,7 @@ void shutdownTask(const ShutdownTaskArgs& shutdownArgs) {
try {
// For faster tests, we allow a short wait time with setParameter.
auto waitTime = repl::waitForStepDownOnNonCommandShutdown.load()
? Milliseconds(Seconds(10))
? Milliseconds(Seconds(15))
: Milliseconds(100);
replCoord->stepDown(opCtx, false /* force */, waitTime, Seconds(120));
} catch (const ExceptionFor<ErrorCodes::NotMaster>&) {