Kill FSM worker thread sessions at the end of their execution

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Sharding EMEA 2023-03-20, Sharding EMEA 2023-04-03
    • 15
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Some FSM workloads leave open cursors (intentionally or otherwise). Open cursors block the range deleter, and this makes the CheckOrphansDeleted hook fail. This has been happening quite often after SERVER-43099 and it's usually time-consuming to debug – the effect of some FSM forgetting a cursor open is that the stopping the balancer times out or the orphan check hook fails.

      SERVER-74993 will introduce a dedicated hook to check for leaked cursors that should run before the CheckOrphansDeleted. In the meantime, this ticket is to make sure the FSM worker threads' sessions are killed by the end of the thread. This will close any idle cursors and let the range deleter make progress so that CheckOrphansDeleted can pass.

            Assignee:
            Jordi Serra Torrens
            Reporter:
            Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: