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

Correct wrong handling and add proper handling for swallowed InterruptedException thrown by Thread.sleep under HBase-Client/HBase-Server folders systematically

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Abandoned
    • None
    • None
    • Client, regionserver
    • None

    Description

      There are two kinds of handling problems for InterruptedException thrown by Thread.sleep in many places under HBase-Client/HBase-Server folders:

      1. Thread.currentThread.interrupt() is called within 'while' loops which can result in buggy behaviors such as expected sleep doesn't occur due to restored interrupt status by former loop
      2. InterruptedException thrown by Thread.sleep are swallowed silently (which are neither declared in the caller method's throws clause nor rethrown immediately)

      Attachments

        1. HBASE-10497-trunk_v1.patch
          16 kB
          Honghua Feng
        2. HBASE-10497-trunk_v2.patch
          67 kB
          Honghua Feng

        Activity

          People

            Unassigned Unassigned
            fenghh Honghua Feng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: