Implement `mergeAllChunksOnShard` in the sharding catalog manager

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Sharding EMEA 2022-12-12, Sharding EMEA 2023-01-23
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Pierlauro Sciarelli
              Reporter:
              Pierlauro Sciarelli
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: