-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Index Maintenance
-
None
-
Fully Compatible
-
ALL
-
v4.2
-
Storage NYC 2019-05-20, Execution Team 2019-06-03, Execution Team 2019-06-17
-
0
At the beginning of this code in runCreateIndexesWithCoordinator, a collection lock is acquired in MODE_IX using AutoGetCollection. This also locks the database in MODE_IX, but this lock is not yielded before trying to relock the database with MODE_X. This results in a conversion of the database lock instead of a relock, potentially resulting in deadlock.
- is related to
-
SERVER-41141 Remove DB X lock acquisition for secondary index builds
- Closed
-
SERVER-41021 createIndexes should not use Database MODE_X when creating the collection.
- Closed
-
SERVER-39369 Filter index builds requests in the coordinator, register the builds on the Coordinator and set them up in the persisted catalog before changing threads
- Closed