Ensure authoritative collection metadata is cloned on movePrimary w/concurrent setFCV

XMLWordPrintableJSON

    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2026-06-08, CAR Team 2026-06-22
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The authoritative metadata cloning DDL coordinator from SERVER-127532 is per-shard, so we may start cloning the authoritative metadata for a DB, only to discover that we are no longer the DB primary due to a movePrimary.

       

      For DB authoritative metadata, we handled this by making movePrimary also make the DB metadata authoritative (SERVER-101625).

       

      However this is not currently the case for collection authoritative metadata. Fix it by cloning the collection authoritative metadata on movePrimary or adding a fallback to the authoritative cloning DDL coordinator.

            Assignee:
            Joan Bruguera Micó
            Reporter:
            Joan Bruguera Micó
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: