[SERVER-85281] Deprecate movePrimary command Created: 17/Jan/24  Updated: 18/Jan/24

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Silvia Surroca Assignee: Backlog - Catalog and Routing
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-83844 Replace movePrimary calls with change... Backlog
Assigned Teams:
Catalog and Routing
Participants:

 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.


Generated at Thu Feb 08 06:57:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.