Sharded DDL commands may complete while the DDL coordinator is still active in-memory (cleaning up)

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: 7.0.0, 8.0.0, 8.1.0, 8.3.0-rc0, 8.2.0
    • Component/s: None
    • None
    • Catalog and Routing
    • ALL
    • CAR Team 2025-09-29
    • 0
    • 🟥 DDL
    • None
    • None
    • None
    • None
    • None
    • None

      Sharded DDL commands generally create a ShardingDDLCoordinator, then block until completion by waiting on its completion future. After the command gets unblocked, it can return the result back to the user which may run follow-up commands with the expectation that the operation is fully complete.

      However, the de-activation of the ShardingDDLCoordinator from the ShardingDDLCoordinatorService concurrently waits on this same future, and there is no guarantee that it gets scheduled on a timely manner. This can for example cause setFCV to find a conflicting addShard coordinator still active, even if addShard and setFCV are run sequentially.

            Assignee:
            Joan Bruguera Micó
            Reporter:
            Joan Bruguera Micó
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: