[SERVER-67849] Implement a range deleter service observer Created: 07/Jul/22  Updated: 29/Oct/23  Resolved: 04/Aug/22

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

Type: Task Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: Silvia Surroca
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
causes SERVER-77513 Range deletion document removal commi... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2022-07-25, Sharding EMEA 2022-08-08
Participants:

 Description   

Create a RangeDeleterServiceObserver implementing the OpObserver inteface to observe CRUD operations happening on range deletion task documents contained in the config.rangeDeletions namespace.

The observer must be set-up only on shard nodes conditionally to the value of the feature flag.

The following behaviors are expected to be implemented:

Development strategy
In case this ticket gets picked up before the completion of SERVER-67636, a first version of the observer can enclose a RangeDeleterService instance. The retrieval of the instance from the service context can be implemented as a followup.

Testing strategy

  • Unit tests can be added to check that the range deleter service state gets properly updated in reaction to the targeted CRUD operations.
  • Since feature flags are disabled in unit tests (if not explicitly enabled on the binary), depending on how the test is setup it may be needed to enable the range deleter service feature flag by using a RAIIServerParameterControllerForTest.

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