Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-2215

kernel stack watchdog can delay thread exits

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.0
    • Fix Version/s: 1.6.0
    • Component/s: perf, util
    • Labels:
      None

      Description

      KernelStackWatchdog::Unregister can block if the watchdog is currently in the process of dumping a thread's stacks. The stack dumping can take several seconds in the worst case, so this can delay another thread from exiting.

      There's currently a comment indicating that we don't usually care about delaying thread exits, but there are actually a few places where we do join() on a thread. In particular, in earlier versions Peer::Close() joins on a ResettableHeartbeater and thus can get stuck for a while.

        Attachments

          Activity

            People

            • Assignee:
              tlipcon Todd Lipcon
              Reporter:
              tlipcon Todd Lipcon
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: