[SERVER-71666] Reduce number of scanned index entries on chunk migration commit Created: 29/Nov/22  Updated: 29/Oct/23  Resolved: 30/Nov/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 6.0.0, 6.1.0, 6.0.2, 6.0.3, 6.2.0-rc1
Fix Version/s: 6.0.4, 6.2.0-rc2, 6.3.0-rc0

Type: Bug Priority: Major - P3
Reporter: Tommaso Tocci Assignee: Pierlauro Sciarelli
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Problem/Incident
is caused by SERVER-64148 Atomic `split+move` when moveRange in... Closed
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.2
Sprint: Sharding EMEA 2022-12-12
Participants:
Case:

 Description   

In SERVER-64148 we changed the ShardingCatalogClient::commitChunkMigration implementation to make it compatible with the new moveRange command. This command can move a sub range of an existing chunk.

In particular we changed the query to find the chunk being moved. Since the new query is not sorted and use a limit of 2 it will need to scan all the index entries with min value less than the minimum shard key of the range to migrate.



 Comments   
Comment by Githook User [ 30/Nov/22 ]

Author:

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

Message: SERVER-71666 Reduce number of scanned index entries on chunk migration commit

(cherry picked from commit 591bce59840c8f6e1926b2d5a324eeefbf750336)
Branch: v6.0
https://github.com/mongodb/mongo/commit/91e38b0d70a70ad770393c8565d75c5f561de7a7

Comment by Githook User [ 30/Nov/22 ]

Author:

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

Message: SERVER-71666 Reduce number of scanned index entries on chunk migration commit

(cherry picked from commit 591bce59840c8f6e1926b2d5a324eeefbf750336)
Branch: v6.2
https://github.com/mongodb/mongo/commit/63d6350c8a31bc8a317f936ae39f617919d63c2f

Comment by Githook User [ 30/Nov/22 ]

Author:

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

Message: SERVER-71666 Reduce number of scanned index entries on chunk migration commit
Branch: master
https://github.com/mongodb/mongo/commit/591bce59840c8f6e1926b2d5a324eeefbf750336

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