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

Implicitly change all DBPrimaries on removeShard

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None
    • Catalog and Routing

    Description

      Implicitly change all the DBPrimary from the removed shard on a removeShard operation.

      To do that we should call the _shardsvrDrainShard command from the _configsvrRemoveShard execution thread.

      Considerations to be taken: 

      • We can't call _shardsvrDrainShard unless all the checks to remove a shard pass.
      • Config server will tell the draining shard through the _shardsvrDrainShard command which is the destination shard for all the databases.
      • The balancer won't start moving the unsplittable collections related to the removeShard operation until their database is been moved off the draining shard.

      Attachments

        Activity

          People

            backlog-server-catalog-and-routing Backlog - Catalog and Routing
            silvia.surroca@mongodb.com Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: