Implement skeletons for refineCollectionShardKey and _configsvrRefineCollectionShardKey

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 2019-06-17, Sharding 2019-07-01
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      For refineCollectionShardKey:

      1. 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
      2. Forwards its arguments to the config server primary by sending _configsvrRefineCollectionShardKey using the config shard from the shard registry with an idempotent retry policy
      3. Invalidates the routing table entry for the given namespace through the catalog cache

      For _configsvrRefineCollectionShardKey:

      1. 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
      2. Returns success always

      Both should inherit from TypedCommand, not BasicCommand.

            Assignee:
            James Heppenstall (Inactive)
            Reporter:
            Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: