onStepDown starts an async job that interrupts and joins leftovers PrimaryOnlyService instances

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • CAR Team 2026-08-31
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-133518 implemented a workaround to make sharding coordinators release locks during stepdown.

      Ideally, cleanup work should not be inline in the stepdown path, and should instead be executed asynchronously, or during a potential next stepup.

      This ticket tracks the work to improve the cleanup of sharding coordinators, making stepdown start an asynchronous job that will interrupt and join leftovers (including releasing the locks) initiated via stepdown. That way, the SERVER-133518 workaround can go away.

      Stepup will just need to wait for that future to finish, instead of doing exactly that work.

            Assignee:
            Pol Pinol
            Reporter:
            Pol Pinol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: