mirror of https://github.com/mongodb/mongo
SERVER-46948 Increase shutdown timeoutSecs on mongod
This commit is contained in:
parent
748ca39b28
commit
27dd10adb5
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>&) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue