-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
ALL
-
v7.0, v6.0, v5.0
-
Execution NAMR Team 2023-09-18, Execution Team 2023-12-11, Execution Team 2023-12-25, Execution Team 2024-01-08, Execution Team 2024-01-22
-
3
The mechanism introduced in SERVER-68477 to resolve invalid expireAfterSeconds values and prevent unintended document deletions can potentially induce a deadlock during step-up with appropriate prepared transactions.
A prepared transaction which has a write to a collection "foo" will reacquire an IX lock on "foo" prior to running the index onStepUp method, where the TTLMonitor will attempt to acquire an X lock on a collection "foo" if it decides it needs to normalize its index spec. We cannot safely reverse the order of the operations.
As of this time we have not observed this deadlock in practice in any released builds, so we believe it to be extremely rare, and will be addressing it out of an abundance of caution.
- related to
-
SERVER-81192 Introduce background maintenance task queue
- Closed