Adding a replica set to a sharded cluster does not register existing databases in the shard-local catalog

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2025-02-17, CAR Team 2025-03-03, CAR Team 2025-03-17, CAR Team 2025-08-04, CAR Team 2025-08-18, CAR Team 2025-09-01
    • 🟦 Shard Catalog
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, when we add a replica set to a sharded cluster using the addShard command, and that replica set contains data, we manually register the collection in the global catalog by writing to config.databases.

      In the context of SPM-3729, this process bypasses registration in the shard-local catalog, which makes the shards not being authoritative for databases.

            Assignee:
            Wolfee Farkas
            Reporter:
            Pol Pinol
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: