[SERVER-68775] RangeDeleterService::CRUDUtils must offer a `dropRangeDeletionTasks` method Created: 12/Aug/22  Updated: 05/Dec/22  Resolved: 14/Oct/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: [DO NOT USE] Backlog - Sharding EMEA
Resolution: Duplicate Votes: 0
Labels: pm-2849-optimizations
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-68772 Move range deleter util functions und... Closed
Assigned Teams:
Sharding EMEA
Participants:

 Description   

The dropRangeDeletionTasks(UUID collUUID) method must delete all range deletion task documents present on disk for the collection with the specified id.

As a consequence, the observer will also trigger the deregistration of the deleted tasks.

As part of this ticket, also enhance RangeDeleterService::deregisterTask in order to:

  • Avoid creating the set in case of deregistration (currently it does because _rangeDeletionTasks[collUUID] has the effect of retrieving OR creating the set if not existing).
  • Delete the set for a collection in case its size is 0


 Comments   
Comment by Pierlauro Sciarelli [ 14/Oct/22 ]

Closing as gone away since this method does exactly the same

Generated at Thu Feb 08 06:11:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.