-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Catalog and Routing
-
None
-
3
-
TBD
-
None
-
None
-
None
-
None
-
None
-
None
Most DDLs (create, rename, drop, collMod, etc.) shouldn't need to take an exclusive (MODE_X) database or global lock, but can instead take an intent exclusive (MODE_IX) database lock and take finer-grained locks over the affected collections.
Taking an exclusive database lock blocks all other operations, and can lead to performance problems (e.g. SERVER-72703) or deadlocks (e.g. SERVER-103744).
This ticket is for auditing the current uses of MODE_X database (or global) locks in DDLs and opening tickets if they can be replaced with more fine-grained locks.
- is related to
-
SERVER-103744 Deadlock between renameCollection, dbHash, and prepared transaction
-
- In Code Review
-
-
SERVER-72703 Downgrade $out's db lock to MODE_IX
-
- Closed
-
- related to
-
SERVER-81286 Investigate usages of exclusive locks in rename_collection.cpp
-
- Open
-