-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: 7.1.0-rc0
-
Component/s: None
-
Sharding EMEA
-
Fully Compatible
-
ALL
-
v7.0
-
Sharding EMEA 2023-08-21
-
10
-
2
Full explanation in attached BF.
makeOperationContext calls registerOpCtx in the primary only service, which acquires the primary only service mutex.
If this is called while holding the sharding ddl coordinator service mutex, the operation holding it needs to be interrupted on stepdown to prevent a deadlock. In the case of constructInstance, it is being called on the instance cleanup executor (which is not interrupted on stepdown) while holding the sharding ddl coordinator service mutex. This can lead to deadlock on stepdown.
- is caused by
-
SERVER-76463 Ensure Sharding DDL locks acquired outside a coordinator wait for DDL recovery
- Closed