Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-7109

Resource leak in HBaseStorageHandler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.13.0
    • 0.14.0
    • HBase Handler
    • None

    Description

      The "preCreateTable" method in the HBaseStorageHandler checks that the HBase table is still online by creating a new instance of HTable

      // ensure the table is online
      new HTable(hbaseConf, tableDesc.getName());
      

      However this instance is never closed. So if this test succeeds, we would have a resource leak in the code.

      Attachments

        1. HIVE-7109.1.patch.txt
          1 kB
          Swarnim Kulkarni

        Activity

          People

            swarnim Swarnim Kulkarni
            swarnim Swarnim Kulkarni
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: