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

Implement updateZoneKeyRange and _configsvrUpdateZoneKeyRange

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.11
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Sharding 17 (07/15/16), Sharding 18 (08/05/16)

      Public command format:

      {
        updateZoneKeyRange: <string namespace>,
        min: <BSONObj min>,
        max: <BSONObj max>,
        zone: <string zone|null>
      }
      

      Internal command format:

      {
        _configsvrUpdateZoneKeyRange: <string namespace>,
        min: <BSONObj min>,
        max: <BSONObj max>,
        zone: <string zone|null>,
        writeConcern: <BSONObj>
      }
      

      Requirements:
      1. min < max.
      2. zone should be an existing shard zone.
      3. [min, max) should not overlap with existing zoned range.

      Note:

      • passing a null zone is for removing an existing zoned range [min, max) from it's existing zone. The [min, max) should exactly match a real zoned range, otherwise, it will be a no-op.

            Assignee:
            randolph@mongodb.com Randolph Tan
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: