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

Need to throw the original exception in HRegion#openHRegion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1, 2.4.0, 2.2.7, 2.3.4
    • None
    • None

    Description

      protected HRegion openHRegion(final CancelableProgressable reporter)
      throws IOException {
        try {
          ......
        } catch(Throwable t) {
          // By coprocessor path wrong region will open failed,
          // MetricsRegionWrapperImpl is already init and not close,
          // add region close when open failed
          this.close(); // This may throw IOException too.
          throw t;
        }
        return this;
      }
      

      https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java#L8144

      this.close() may throw IOException too. TheĀ original exception will not be recorded.

      Attachments

        Issue Links

          Activity

            People

              niuyulin Yulin Niu
              zghao Guanghao Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: