[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: |
|
||||||||
| 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: |