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

Implement skeletons for refineCollectionShardKey and _configsvrRefineCollectionShardKey

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

      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:
            jamie.heppenstall@mongodb.com James Heppenstall (Inactive)
            Reporter:
            jack.mulrow@mongodb.com Jack Mulrow
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: