For refineCollectionShardKey:
- Should be a command on mongos in a file named cluster_refine_collection_shard_key.cpp in src/mongo/s/commands to match our convention
- Forwards its arguments to the config server primary by sending _configsvrRefineCollectionShardKey using the config shard from the shard registry with an idempotent retry policy
- Invalidates the routing table entry for the given namespace through the catalog cache
For _configsvrRefineCollectionShardKey:
- Should be a command on the config server in a file named configsvr_refine_collection_shard_key.cpp in src/mongo/db/s/config to match our convention
- Returns success always
Both should inherit from TypedCommand, not BasicCommand.
- has to be done after
-
SERVER-41653 Create IDL types for refineCollectionShardKey and _configsvrRefineCollectionShardKey commands
- Closed
- has to be done before
-
SERVER-41657 Create action type for refineCollectionShardKey command
- Closed