-
Type:
Improvement
-
Resolution: Duplicate
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Catalog and Routing
-
CAR Team 2024-10-28, CAR Team 2024-11-11
-
2
In order to prevent lock ordering issues one simple approach would be to add a monotonically increasing check for the global locks. That is, the ResourceId associated to the global lock being taken must be always increasing barring recursive locks.
Doing so would avoid having a class of issues where lock-free reads are taking a lock on a collection since normal collection locking usually locks the RSTL which comes before the global lock in the hierarchy.
The attached patch should provide a base implementation for it and has already caught two of these issues which must be resolved before working on this ticket.
- depends on
-
SERVER-93369 Fix lock ordering in TextMatchExpression
-
- Closed
-
-
SERVER-93371 Fix lock ordering in CommonMongodProcessInterface::fieldsHaveSupportingUniqueIndex
-
- Closed
-
- is duplicated by
-
SERVER-99150 Make threads always acquire locks with strict ordering
-
- Closed
-
- related to
-
SERVER-95260 Investigate generational lock information
-
- Backlog
-