Swallow CollectionUUIDMismatch during authoritative DB metadata drop in FCV Upgrade/Downgrade

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-11-10
    • 200
    • 🟦 Shard Catalog, 🟩 Routing and Topology
    • None
    • None
    • None
    • None
    • None
    • None

      During setFCV upgrade or downgrade, the finalizeUpgrade/finalizeDowngrade phase drops the authoritative database collection on each shard by UUID. If a primary step-down occurs, the phase may be retried by a new primary, causing a second dropCollection by UUID. The first drop succeeds, but the retry fails with CollectionUUIDMismatch because the collection no longer exists.

      This ticket proposes to safely swallow CollectionUUIDMismatch in this context to make the drop operation idempotent and avoid unnecessary failures during FCV upgrade or downgrade.

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

              Created:
              Updated:
              Resolved: