-
Type:
Improvement
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Sharding EMEA 2022-10-03
When a sharded collection is dropped, the range-deleter is lazily discovering that some range deletions may refer an older incarnation of such collection (dropped or dropped and recreated).
While de-queueing already scheduled range deletion tasks that may not be trivial, a simple optimization could be to delete persistent range deletion task documents so that:
- On step-up, "stale" range deletion tasks are not getting scheduled
- Users and technical services don't get fooled by the presence of wrong range deletion tasks
- It would be consistent with rename that already drops "stale" range deletion tasks both for source and target collection
This change is safe because the range-releter is already handling the absence of a document for a scheduled range deletion.
- causes
-
SERVER-70034 Fix potential deadlock on step down
-
- Closed
-
-
SERVER-70873 Stepdown during drop collection can lead to a deadlock
-
- Closed
-
- is related to
-
SERVER-100790 [v6.0] range deleter gets stuck when a collection is re-created as a view or timeseries
-
- Needs Merge
-