|
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.
|