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

If HBaseTestClassRule timesout a test, thread dump.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-beta-2, 2.0.0
    • None
    • None
    • Reviewed

    Description

      We set look for stuck thread in our timeout rule but it is super conservative in what it prints.. it looks for a RUNNABLE thread and prints first found ONLY. Pretty useless for us. If a test timesout, often the printing has stopped in the stderr/stdout.

      I'm trying to debug TestAsyncRegionAdminApi. It says test timed out after 10 minutes but we've stopped printing to the logs and here is what junit prints:

      -------------------------------------------------------------------------------
      Test set: org.apache.hadoop.hbase.client.TestAsyncRegionAdminApi
      -------------------------------------------------------------------------------
      Tests run: 25, Failures: 0, Errors: 2, Skipped: 2, Time elapsed: 572.508 s <<< FAILURE! - in org.apache.hadoop.hbase.client.TestAsyncRegionAdminApi
      org.apache.hadoop.hbase.client.TestAsyncRegionAdminApi Time elapsed: 14.642 s <<< ERROR!
      org.junit.runners.model.TestTimedOutException: test timed out after 600 seconds
      at org.apache.hadoop.hbase.client.TestAsyncRegionAdminApi.testMergeRegions(TestAsyncRegionAdminApi.java:363)

      org.apache.hadoop.hbase.client.TestAsyncRegionAdminApi Time elapsed: 14.642 s <<< ERROR!
      java.lang.Exception: Appears to be stuck in thread Socket Reader #1 for port 35917

      Attachments

        1. HBASE-19986.branch-2.003.patch
          4 kB
          Michael Stack
        2. HBASE-19986.branch-2.002.patch
          5 kB
          Michael Stack
        3. HBASE-19986.branch-2.001.patch
          4 kB
          Michael Stack

        Issue Links

          Activity

            People

              stack Michael Stack
              stack Michael Stack
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: