-
Type: Task
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
v4.2
-
Execution Team 2019-11-04, Execution Team 2019-11-18
-
(copied to CRM)
Remove global X lock acquisition for applyOps. This is because acquiring global lock in X mode can be blocked by prepared transactions. The enqueued global X lock can block oplog queries which need the global IS lock. If these oplog queries and the data replication are needed to satisfy the prepared transaction's write concern, then the prepare transaction and replication cannot make progress. Thus a deadlock occurs.
Alternatively, if removing global X lock is not an option, deprecate the command or make sure it won't be blocked on prepare transactions.
- depends on
-
SERVER-44389 Investigate whether the 'preCondition' can be removed from 'applyOps'
- Closed
-
SERVER-44390 Investigate whether we can run one DDL command per 'applyOps'
- Closed
- split from
-
SERVER-43242 Deadlock involving commands acquiring global X lock and prepared transactions waiting for write concern
- Closed