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

Deprecate movePrimary command

    XMLWordPrintableJSON

Details

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

    Description

      The movePrimary command will be deprecated giving way to two new commands called changePrimary and moveCollection.

      Reasoning
      movePrimary was mainly used by the users to move unsharded collections around the cluster since any unsharded collection had to live on the DBPrimary shard. Now that any unsharded collection can live outside the DBPrimary shard, movePrimary is no longer needed and moveCollection should be used instead.

      On the other hand, since the user can still need to change the DBPrimary shard for other reasons than moving unsharded collections (like distributing the DDL workload across the cluster or moving the view's location), we will expose a brand new command called changePrimary that will change the DBPrimary shard and will move the untracked collections (not unsharded!) to the new DBPrimary 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:
            3 Start watching this issue

            Dates

              Created:
              Updated: