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

Missing break in catch block of InterruptedException in HRegion#waitForFlushes()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.0, 1.3.2, 2.0.0-alpha-4, 2.0.0, 1.2.7
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      During review of HBASE-18358, Josh Elser found that there was missing break in the catch block:

                } catch (InterruptedException iex) {
                  // essentially ignore and propagate the interrupt back up
                  LOG.warn("Interrupted while waiting");
                  interrupted = true;
                }
      

      When thread is interrupted, we shouldn't wait on writestate.flushing anymore.

        Attachments

        1. 19072.v1.txt
          0.7 kB
          Ted Yu

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: