diff options
author | Rachita Dhawan <rachita.dhawan@gmail.com> | 2022-05-04 19:10:44 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-05-17 15:48:13 +0000 |
commit | ce47119ff1a1ab79f18235f1f42eeef39da6f20c (patch) | |
tree | dd34fbdfb6a65fe2378fa7166654c0893ad8db49 /src/mongo/s/mongos_main.cpp | |
parent | 387db2d0f7b26b4ae6efdf46854e60f12f93d4d2 (diff) | |
download | mongo-r6.0.0-rc6.tar.gz |
SERVER-62175 Mongos fails to attach RetryableWrite Error Label For Command Interrupted In _parseCommandr6.0.0-rc6
(cherry picked from commit 38e4a5516d614a2bd1f3c3afde97c19068fd1441)
Diffstat (limited to 'src/mongo/s/mongos_main.cpp')
-rw-r--r-- | src/mongo/s/mongos_main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/s/mongos_main.cpp b/src/mongo/s/mongos_main.cpp index bea3ea0ae4b..0504b714aec 100644 --- a/src/mongo/s/mongos_main.cpp +++ b/src/mongo/s/mongos_main.cpp @@ -321,6 +321,12 @@ void cleanupTask(const ShutdownTaskArgs& shutdownArgs) { LOGV2(4701800, "pauseWhileKillingOperationsAtShutdown failpoint enabled"); sleepsecs(1); } + FailPoint* hangBeforeInterruptfailPoint = + globalFailPointRegistry().find("hangBeforeCheckingMongosShutdownInterrupt"); + if (hangBeforeInterruptfailPoint) { + hangBeforeInterruptfailPoint->setMode(FailPoint::Mode::off); + sleepsecs(3); + } } // Perform all shutdown operations after setKillAllOperations is called in order to ensure |