movePrimary should not clear DB filtering metadata if it aborts before commit

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: 8.3.0-rc0
    • Component/s: Catalog, Sharding
    • None
    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2025-09-15
    • 200
    • 馃煡 DDL
    • None
    • None
    • None
    • None
    • None
    • None

      The movePrimary DDL coordinator takes the critical section on the donor in two steps:

      If the coordinator aborts (e.g. through this code path) while it still has the critical section in catchup mode, during the cleanup path it will always attempt to clear the DB filtering metadata. After SERVER-103711, this hits tassert 10371106 which prevent clearing the cached DB metadata while not holding the critical section in commit mode.

      We should avoid clearing the DB filtering metadata if we abort while not yet committing the movePrimary.

            Assignee:
            Joan Bruguera Mic贸
            Reporter:
            Joan Bruguera Mic贸
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: