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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.99.0, 0.98.5
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: