[SERVER-42329] Remove use of _id in MigrationTypeand rely on ns_1_min_1 index instead Created: 22/Jul/19  Updated: 29/Oct/23  Resolved: 02/Aug/19

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

Type: Task Priority: Major - P3
Reporter: James Heppenstall (Inactive) Assignee: James Heppenstall (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding 2019-08-12
Participants:

 Description   

MigrationType relies on genID (https://github.com/mongodb/mongo/blob/master/src/mongo/db/s/balancer/type_migration.h#L89) in its getName function. Remove any uses of genID, and thus getName, in favor or querying on the ns_1_min_1 index. 

According to kaloian.manassiev here (https://mongodbcr.appspot.com/496100032/diff/476240012/src/mongo/db/s/balancer/type_migration.h#newcode89), this is only relevant to duplicate key handling.



 Comments   
Comment by Githook User [ 02/Aug/19 ]

Author:

{'name': 'Jamie Heppenstall', 'username': 'JamesHeppenstall', 'email': 'jamie.heppenstall@mongodb.com'}

Message: SERVER-42329 Remove use of stringified id (concatenation of ns and minKey) in MigrationType
Branch: master
https://github.com/mongodb/mongo/commit/d2b16396526edd39aa0dcbaf609ffe2b0caa5d5e

Generated at Thu Feb 08 05:00:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.