[SERVER-77530] Join the mirroring executor on shutdown Created: 26/May/23  Updated: 29/Oct/23  Resolved: 14/Jun/23

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Amirsaman Memaripour Assignee: Jennifer Wang (Inactive)
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Assigned Teams:
Service Arch
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0, v6.0, v5.0, v4.4
Sprint: Service Arch 2023-06-12, Service Arch 2023-06-26
Participants:
Linked BF Score: 12

 Description   

MirrorMaestro is a decoration on ServiceContext, responsible for mirroring read operations received on the primary. Reads are mirroring via a ThreadPoolTaskExecutor, that internally uses a ThreadPool to run the mirroring operation in the background and off of the critical execution path.

As part of shutting down a mongod server, we shutdown this service from here. The shutdown task, however, doesn't join the executor threads. We should join the executor threads to make sure they all return before process shutdown.



 Comments   
Comment by Githook User [ 13/Jun/23 ]

Author:

{'name': 'Jennifer Wang', 'email': 'jennifer.wang@mongodb.com', 'username': ''}

Message: SERVER-77530 Join the mirroring executor on shutdown
Branch: master
https://github.com/mongodb/mongo/commit/2251e0e954ca431978a989de49a0c32e26fd5d47

Generated at Thu Feb 08 06:35:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.