AddShardCoordinator should check shardIdentity on replicaset

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • CAR Team 2025-06-09, CAR Team 2025-06-23
    • 2
    • None
    • 3
    • TBD
    • 🟩 Routing and Topology
    • None
    • None
    • None
    • None
    • None
    • None
    • 0

      Currently, adding a replicaset that already has a shardIdentity to a cluster results in a collision between shardIdentities, making the config server hanging and requiring a manual intervention. This situation arises when a shard is removed from one cluster (the operation does not clean up the shard metadata) and is then added to a another cluster. 
      To address this, the AddShardCoordinator should verify during the kCheckShardPreconditions phase whether there exists a shardIdentity on the replicaset. If it does, the coordinator must fail.

            Assignee:
            Anna Maria Nestorov
            Reporter:
            Wolfee Farkas
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: