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

Don't let flushThread hang in TestHRegion

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.0, 2.0.0
    • 1.4.0, 2.0.0
    • None
    • None
    • Reviewed

    Description

      I was running TestHRegion locally and observed the following in test output:

      2016-09-28 16:29:36,836 INFO  [main] hbase.ResourceChecker(171): after: regionserver.TestHRegion#testFlushCacheWhileScanning Thread=50 (was 49)
      Potentially hanging thread: FlushThread
        java.lang.Object.wait(Native Method)
        java.lang.Object.wait(Object.java:502)
        org.apache.hadoop.hbase.regionserver.TestHRegion$FlushThread.run(TestHRegion.java:3834)
      

      Call to flushThread.done() etc should be placed in the finally block.

      Attachments

        1. 16725.v2.txt
          3 kB
          Ted Yu
        2. 16725.branch-1.v2.txt
          3 kB
          Ted Yu
        3. 16725.branch-1.v1.txt
          2 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: