[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:
Depends
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 SERVER-69461 this logic got more complex, as we now have to keep the opCtx and client alive to ensure the lock is held.

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.


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