-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Sharding EMEA 2022-12-12, Sharding EMEA 2023-01-23
It can happen for a shard to own several contiguous sequences of chunks for a given collection. In order to merge them, issuing single merge requests will result in bumping several times the shard version causing frequent routing table refreshes.
Purpose of this ticket is to implement a mergeAllChunksOnShard method on the sharding catalog manager that will take care of squashing at once all "mergeable" chunks a shard owns for a given collection and bump the shard versions accordingly. All of that needs to happen in a single transaction.
- is depended on by
-
SERVER-72278 Implement `mergeAllChunksOnShard` command paths
- Closed
-
SERVER-72283 Take into account mergeability constraints in` mergeAllChunksOnShard`
- Closed