Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-7086

Enhance ResourceChecker to log stack trace for potentially hanging threads

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.94.3, 0.95.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Currently ResourceChecker logs a line similar to the following if it detects potential thread leak:

      2012-11-02 10:18:59,299 INFO  [main] hbase.ResourceChecker(157): after master.cleaner.TestHFileCleaner#testTTLCleaner: 44 threads (was 43), 145 file descriptors (was 145). 0 connections,  -thread leak?-
      

      We should enhance the log to include stack trace of the potentially hanging thread(s)

      This work was motivated when I investigated test failure in HBASE-6796

        Attachments

        1. 7086-trunk-v3.txt
          6 kB
          Ted Yu
        2. 7086-trunk-v2.txt
          5 kB
          Ted Yu
        3. 7086-trunk.txt
          5 kB
          Ted Yu
        4. 7086-94.addendum
          0.9 kB
          Ted Yu
        5. testHFileCleaner.out
          35 kB
          Ted Yu
        6. 7086.94
          4 kB
          Ted Yu

          Activity

            People

            • Assignee:
              zhihyu@ebaysf.com Ted Yu
              Reporter:
              zhihyu@ebaysf.com Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: