MigrationSourceManager critical section doesn't serialize with replica set state change

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • ALL
    • CAR Team 2026-07-06, CAR Team 2026-07-20
    • 200
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The legacy (non authoritative) path of MigrationSourceManager gets interrupted during stepdown, but the step down process doesn't actually wait for the critical section to get released here. It is theoretically possible for a new primary to step up, recover and resolve the migration, and then launch a new DDL operation that would conflict with the still held in-memory critical section, leading to this invariant violation.

            Assignee:
            Aitor Esteve Alvarado
            Reporter:
            Aitor Esteve Alvarado
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: