Fix livelock on drainMigrationsPendingRecovery

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.0.0-rc1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2026-07-06
    • 200
    • 🟦 Shard Catalog
    • None
    • None
    • None
    • None
    • None
    • None

      The function drainMigrationsPendingRecovery() loops until all persisted migration recovery documents have been removed from disk. In each iteration, it calls FilteringMetadataCache::onShardVersionMismatch() for the namespace in each recovery document, effectively using the filtering metadata refresh path to drive migration recovery.

      However, that recovery does not happen when the metadata is known, causing a live lock.

            Assignee:
            Silvia Surroca
            Reporter:
            Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: