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

Automatically Remove Zone Ranges When Unsharding a Collection

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 8.1.0-rc0
    • Affects Version/s: 8.0.4
    • Component/s: None
    • Cluster Scalability
    • Fully Compatible
    • 0

      Today when a customer unshards a collection that has a zone definition the unshard command fails.

      MongoServerError: Specified zones and shardDistribution are conflicting with the existing shard/zone, shard configdoesn't belong to zone zone_two 

      It would be better if the system automatically removed the zone configuration for the collection as unsharded collections cannot have zone configurations and saves the customer time of manually removing the zone information.

      This change should come with a docs update that states unsharding a collection will remove any zone configuration for the namespace if configured.

            Assignee:
            jane.tio@mongodb.com Jane Tio
            Reporter:
            matt.panton@mongodb.com Matt Panton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: