summaryrefslogtreecommitdiff
path: root/src/mongo/s/mongos_main.cpp
diff options
context:
space:
mode:
authorRachita Dhawan <rachita.dhawan@gmail.com>2022-05-04 19:10:44 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-04 20:59:23 +0000
commit38e4a5516d614a2bd1f3c3afde97c19068fd1441 (patch)
tree0f2c9d1278bb015246ba015342eb6898f65cad59 /src/mongo/s/mongos_main.cpp
parent05c1ac1d57c24cb79eeecec868b0db65bfd02683 (diff)
downloadmongo-38e4a5516d614a2bd1f3c3afde97c19068fd1441.tar.gz
SERVER-62175 Mongos fails to attach RetryableWrite Error Label For Command Interrupted In _parseCommand
Diffstat (limited to 'src/mongo/s/mongos_main.cpp')
-rw-r--r--src/mongo/s/mongos_main.cpp6
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