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

HTableFactory.releaseHTableInterface() wraps IOException in RuntimeException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.90.2
    • 0.92.0
    • Client
    • None
    • Incompatible change, Reviewed
    • Hide
      The follow methods have been changed to now throw IOException:

      org.apache.hadoop.hbase.client.HTableFactory#releaseHTableInterface(HTableInterface)
      org.apache.hadoop.hbase.client.HTableInterfaceFactory#releaseHTableInterface(HTableInterface)
      org.apache.hadoop.hbase.client.HTablePool#closeTablePool(byte[])
      org.apache.hadoop.hbase.client.HTablePool#closeTablePool(String)
      org.apache.hadoop.hbase.client.HTablePool#putTable(HTableInterface)
      Show
      The follow methods have been changed to now throw IOException: org.apache.hadoop.hbase.client.HTableFactory#releaseHTableInterface(HTableInterface) org.apache.hadoop.hbase.client.HTableInterfaceFactory#releaseHTableInterface(HTableInterface) org.apache.hadoop.hbase.client.HTablePool#closeTablePool(byte[]) org.apache.hadoop.hbase.client.HTablePool#closeTablePool(String) org.apache.hadoop.hbase.client.HTablePool#putTable(HTableInterface)

    Description

      Currently HTableFactory.releaseHTableInterface() wraps IOException in RuntimeException.
      We should let HTableInterfaceFactory.releaseHTableInterface() throw IOException explicitly.

      Attachments

        1. HBASE-3762.patch
          7 kB
          Gary Helmling

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: