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

BucketCache$WriterThread.run() doesn't handle exceptions correctly

    XMLWordPrintableJSON

    Details

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

      Description

      Currently the catch is outside the while loop:

            try {
              while (cacheEnabled && writerEnabled) {
      ...
            } catch (Throwable t) {
              LOG.warn("Failed doing drain", t);
            }
      

      When exception (e.g. BucketAllocatorException) is thrown, run() method would terminate, silently.

        Attachments

        1. 11551-v1.txt
          1 kB
          Ted Yu

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: