-
Type:
Improvement
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: 5.0.0, 6.0.0
-
Component/s: None
-
None
-
Catalog and Routing
-
Fully Compatible
-
v5.0
-
CAR Team 2025-02-03, CAR Team 2025-02-17
-
1
This only affects versions prior to the removal of the dist lock in 6.1.
When a new primary steps up, all dist locks are released for that shard in order to prevent the issue described in SERVER-57018. However, an update which queries only by process can be very slow in clusters which have a large build up of documents in config.locks. In most of these clusters, the vast majority of the documents are old documents whose locks are no longer relevant (and therefore already have the `unlocked` state).
This update could be filtered to only update documents whose state is not equal to `unlocked` already. This would allow us to use the state: 1, process: 1 index rather than the process: 1 index and not scan nearly as many documents during this operation.
- related to
-
SERVER-57018 Killed node can hold distributed lock indefinetly
-
- Closed
-