Cleanup the runCommand methods on ShardRegistry

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • Sharding 13 (04/22/16), Sharding 14 (05/13/16)
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, ShardRegistry exposes 7 different methods for running a command:

      • exhaustiveFindOnConfig
      • runCommandOnShard (with Shard object)
      • runCommandOnShard (with ShardId)
      • runCommandForAddShard
      • runCommandOnConfig
      • runCommandWithNotMasterRetries
      • runCommandOnConfigWithNotMasterRetries

      Some of these methods can be expressed in terms of the others so we should go through them and clean them up.

              Assignee:
              Spencer Brody (Inactive)
              Reporter:
              Kaloian Manassiev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: