[SERVER-78859] Simplify shutdown logic in mongod Created: 11/Jul/23 Updated: 12/Jul/23 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Yujin Kang Park | Assignee: | Backlog - Storage Execution Team |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | techdebt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Assigned Teams: |
Storage Execution
|
||||
| Participants: | |||||
| Description |
|
The shutdown path intentionally leaks a MODE_X global lock to disallow operations which require locks until exit() is called. Post If taking locks requires an opCtx, maybe we can simplify by making sure there are no active clients, instead of relying on the locking mechanism. |