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

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

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.3.11
    • Affects Version/s: None
    • Component/s: 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

      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.

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

              Created:
              Updated:
              Resolved: