[SERVER-68660] Make range deleter service observer register tasks with ongoing queries future Created: 09/Aug/22  Updated: 29/Oct/23  Resolved: 16/Sep/22

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 6.2.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:
Depends
depends on SERVER-67385 Range deletion tasks may be wrongly s... Closed
is depended on by SERVER-65558 Enable Feature flag for PM-2849 Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2022-08-22, Sharding EMEA 2022-09-05, Sharding EMEA 2022-09-19
Participants:

 Description   

The range deleter service observer is currently registering tasks (here and here) by relying on the default value of waitForActiveQueriesToComplete.

Purpose of this ticket is to register the tasks by passing the proper future that gets marked as ready once ongoing queries retaining the range are finishing.

As part of this ticket, remember to featureflag the "wait for clean" happening in the migration destination manager: if the feature flag is active, invoke getOverlappingRangeDeletionsFuture and wait on it for at most rangeDeletionWaitDeadline , else keep on invoking waitForClean.



 Comments   
Comment by Githook User [ 15/Sep/22 ]

Author:

{'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'}

Message: SERVER-68660 + SERVER-69678 register range deletion tasks with ongoing queries future after the oplog entry is committed
Branch: master
https://github.com/mongodb/mongo/commit/df3e7c75ed9f70ce38bbc886c3861141c07ddd08

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