CheckOrphansAreDeletedHelpers must account for lazy recovery of unfinished migrations

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
    • v8.1, v8.0, v7.0
    • CAR Team 2025-05-12
    • 0
    • 1
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Before waiting for range deletions to drain, the CheckOrphansAreDeleted helper waits for migration coordinators to drain.

      Under some conditions, migrations that hit errors simply clear the filtering metadata and are expected to be lazily recovered. Recovery can happen either on step-up or upon serving the next query targeting the namespace (that triggers a migration recovery as part of the metadata refresh).

      The CheckOrphansAreDeleted hook must take into account that migrations may not be recovered if there are no queries or step-down+up. A possible fix would be for it to proactively try querying a namespace that has outstanding migration coordinator documents.

            Assignee:
            Allison Easton
            Reporter:
            Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: