[SERVER-48601] ChunkSplitter should use the same chunk bounds for splitVector and splitChunk Created: 04/Jun/20  Updated: 29/Oct/23  Resolved: 29/Jul/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.4.1, 4.7.0, 4.2.10

Type: Bug Priority: Major - P3
Reporter: Matthew Saltz (Inactive) Assignee: Jack Mulrow
Resolution: Fixed Votes: 0
Labels: sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4, v4.2
Sprint: Sharding 2020-07-13, Sharding 2020-07-27, Sharding 2020-08-10
Participants:
Linked BF Score: 5

 Description   

The ChunkSplitter takes in min/max values for the chunk range as input parameters, but then looks the chunk up again in the routing info based on the min key. The min/max for that chunk are used in the call to splitVector, but the call to splitChunk uses the input parameters.

The problem is that in between the time the chunk was submitted for splitting and the time that we look up the chunk again in the routing table, the routing table could have changed and these values could be different, leading to weird outcomes.



 Comments   
Comment by Githook User [ 12/Aug/20 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-48601 ChunkSplitter should use the same chunk bounds for splitVector and splitChunk

(cherry picked from commit 578ebc515122de8ed50b2b914d9d92ee61139b3f)
Branch: v4.4
https://github.com/mongodb/mongo/commit/f0c64958dcff0e448f6d636daad86e52316b4e98

Comment by Githook User [ 12/Aug/20 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-48601 ChunkSplitter should use the same chunk bounds for splitVector and splitChunk

(cherry picked from commit 578ebc515122de8ed50b2b914d9d92ee61139b3f)
Branch: v4.2
https://github.com/mongodb/mongo/commit/4324189baae3a941be81a941dab52c0e70c88718

Comment by Githook User [ 29/Jul/20 ]

Author:

{'name': 'Jack Mulrow', 'email': 'jack.mulrow@mongodb.com', 'username': 'jsmulrow'}

Message: SERVER-48601 ChunkSplitter should use the same chunk bounds for splitVector and splitChunk
Branch: master
https://github.com/mongodb/mongo/commit/578ebc515122de8ed50b2b914d9d92ee61139b3f

Comment by Matthew Saltz (Inactive) [ 04/Jun/20 ]

I'll reassign this to Backlog - Sharding user when it's available. FYI ratika.gandhi

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