[SERVER-69555] Range deletions must always be referred by `collUuid+range` rather than `migrationId` Created: 09/Sep/22  Updated: 29/Oct/23  Resolved: 12/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: Pierlauro Sciarelli
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
causes SERVER-69777 Lock by dbName + UUID rather than nam... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2022-09-19
Participants:

 Description   

There are several range deletion utils and migration utils that are targeting range deletion documents by migration id. Purpose of this ticket is to change all such functions in order to target via collection UUID + range.

First reason (why range deletion utils must target by uuid + range)

In the legacy range deleter, targeting by migrationId ensures that duplicate migrations (on the same range of the same collection) are processed separately as 2 different entities, even though they really refer the same range.

Since the new range deleter service is registering duplicate tasks only once (as obvious, since they refer the same range), it is necessary to make sure that - when a range deletion is completed - all documents in config.rangeDeletions referring the completed deletion are removed.

Second reason (why migration utils must target by collection uuid + range)

At some point the new range deleter service will become a component independent from sharding, so util functions for range deletions can't possibly refer migration ids that are referring moveChunk operations.



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

Author:

{'name': 'Pierlauro Sciarelli', 'email': 'pierlauro.sciarelli@mongodb.com', 'username': 'pierlauro'}

Message: SERVER-69555 Range deletions must always be referred by `collUuid+range` rather than `migrationId`
Branch: master
https://github.com/mongodb/mongo/commit/d7fc3fe24acd513f871ee29517b35075fe1d8d11

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