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

Make the _configsvrEnableSharding command idempotent

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.5.11
    • 3.5.9
    • Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding 2017-07-31

    Description

      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.

      Attachments

        Activity

          People

            jessica.yu Jessica Yu
            jessica.yu Jessica Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: