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

Allow specifying of reshardCollection zones to be empty

    • Fully Compatible
    • ALL
    • v5.0
    • Hide

      1. Apply the attached diff
      2. Run the reshard_collection_basic.js test to get the failure

      Show
      1. Apply the attached diff 2. Run the reshard_collection_basic.js test to get the failure
    • Sharding 2021-07-26, Sharding 2021-08-09
    • 1

      Steps

      1. Specify zones for a sharded collection
      2. Run reshardCollection with the zones argument specified, but empty.
      3. The server will error out here.

      It is legal to specify an empty argument for zones even if there already exist zones in the collection – doing so should be equivalent to saying "the collection resharded under the new key should not use zones."

      The solution lies in either allowing an empty zones object at the level of the initial split code, or feeding the initial split code boost::none if the zones object is empty at the level of the resharding coordinator.

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

              Created:
              Updated:
              Resolved: