Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-3480

WiredTiger connection close can hang joining async threads

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.12, WT3.0.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage 2017-08-21

      WiredTiger connection close can hang joining async threads.

      Currently, WiredTiger clears the WT_CONN_SERVER_ASYNC flag before attempting to join all of the async threads, which should exit their run loop as the above flag has been cleared.

      It appears that there is a potential situation where the WT_CONN_SERVER_ASYNC flag can be reset following a loop through capturing statistics as the flag is set in the __wt_async_stats_update function.

      From a rudimentary review, I don't believe we need to set the flag in __wt_async_stats_update so we should remove the call from there to avoid this hang.

            Assignee:
            david.hows David Hows
            Reporter:
            david.hows David Hows
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: