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

Deprecate movePrimary command

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing

      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.

            Assignee:
            backlog-server-catalog-and-routing [DO NOT USE] Backlog - Catalog and Routing
            Reporter:
            silvia.surroca@mongodb.com Silvia Surroca
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: