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

Increment shard version when changing original or temporary resharding collection

    • Fully Compatible
    • Sharding 2020-10-19, Sharding 2020-11-02, Sharding 2020-11-16
    • 40

      Every time the coordinator wants a set of shards (donor/recipient) to be aware of changes, it should:

      1. Take one chunk from every shard for a collection (original/temporary)
      2. Set that chunk version to currentMaxVersion + 1

      So that every shard will have a "shard version" of [currentMaxVersion + 1], where a "shard version" is the maximum chunk version existing on that shard for a collection.

      This can be done in the update methods in the ReshardingCoordinatorService 

            Assignee:
            blake.oler@mongodb.com Blake Oler
            Reporter:
            haley.connelly@mongodb.com Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: