summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlake Oler <blake.oler@mongodb.com>2020-11-10 02:44:16 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-11-10 21:32:20 +0000
commit6d44788d3d0992bd25f5b8cc33a23b00bddf0371 (patch)
tree9f68ba3e56022a84ca872882217104da799b485b
parentbf30ff31b65e490cac450f91afe45b04c2ea30da (diff)
downloadmongo-6d44788d3d0992bd25f5b8cc33a23b00bddf0371.tar.gz
SERVER-52658 Shut down the Grid's executor before shutting down the PrimaryOnlyServiceRegistry in resharding unit tests
-rw-r--r--src/mongo/db/s/resharding/resharding_donor_recipient_common_test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/s/resharding/resharding_donor_recipient_common_test.cpp b/src/mongo/db/s/resharding/resharding_donor_recipient_common_test.cpp
index 9df204a68e6..f23de8b3a08 100644
--- a/src/mongo/db/s/resharding/resharding_donor_recipient_common_test.cpp
+++ b/src/mongo/db/s/resharding/resharding_donor_recipient_common_test.cpp
@@ -253,6 +253,8 @@ public:
void tearDown() override {
WaitForMajorityService::get(getServiceContext()).shutDown();
+ Grid::get(operationContext())->getExecutorPool()->shutdownAndJoin();
+
_registry->onShutdown();
ShardServerTestFixture::tearDown();