Make the _configsvrEnableSharding command idempotent

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 3.5.11
    • Affects Version/s: 3.5.9
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2017-07-31
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      All config server commands should be idempotent, to handle config server primary stepdown. Currently, enableSharding, a command in the process of being moved to config from mongos, returns an AlreadyInitialized error when there is an attempt to retry the command. This ticket should make the command return the same status as the first run.

      Additionally, update the enableSharding unit test expecting the AlreadyInitialized error to reflect this change.

            Assignee:
            Jessica Yu (Inactive)
            Reporter:
            Jessica Yu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: