Make sure ThreadPool startup logic gracefully handles a concurrent shutdown

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Programmability
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Thread pool startup logic looks for the state to be "preStart" and if it isn't, assumes that it was already started. However, if the node starts shutting down before all the startup actions were complete and the shutdown logic runs before the startup logic, the state will already be set to joinRequired and the node will fassert. We should handle this case more gracefully.

            Assignee:
            Unassigned
            Reporter:
            Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: