Fix cloneAuthoritativeMetadata DDL to handle stale dbVersion in DSS

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.2.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2025-04-28
    • 200
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Under certain conditions in the old protocol, a primary shard can retain a stale dbVersion in its DSS due to previously not being the primary when the version was installed. This leads cloneAuthoritativeMetadata DDL to incorrectly assume the metadata is up-to-date and skip updating it.

      While this is harmless in 8.0 FCV, in 9.0 FCV it can cause unavailability due to reliance on shards being authoritative for database metadata.

      We need to update cloneAuthoritativeMetadata to correctly detect and handle this case, ensuring the authoritative model is entered with valid, up-to-date database metadata.

            Assignee:
            Pol Pinol
            Reporter:
            Pol Pinol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: