Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-71612

Implement `mergeAllChunksOnShard` in the sharding catalog manager

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      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.

            Assignee:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: