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

Make addShard return success if attempting to add an already existing shard

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.3.11
    • None
    • Sharding
    • None
    • Minor Change
    • Sharding 15 (06/03/16), Sharding 16 (06/24/16), Sharding 17 (07/15/16), Sharding 18 (08/05/16)
    • 0

    Description

      Rather than failing with a 'shard already exists' error, addShard should return success if a shard with the same shard name and replica set name already exists. This makes addShard idempotent, which in turns makes it safe to be automatically retried on network errors.

      Attachments

        Activity

          People

            spencer@mongodb.com Spencer Brody (Inactive)
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: