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

Opening a table also opens the metatable and never closes it.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.90.5, 0.92.0
    • 0.90.7, 0.92.1, 0.94.0
    • Client
    • None
    • Reviewed

    Description

      Having upgraded to CDH3U3 version of hbase we found we had a zookeeper connection leak, tracking it down we found that closing the connection will only close the zookeeper connection if all calls to get the connection have been closed, there is incCount and decCount in the HConnection class,

      When a table is opened it makes a call to the metascanner class which opens a connection to the meta table, this table never gets closed.

      This caused the count in the HConnection class to never return to zero meaning that the zookeeper connection will not close when we close all the tables or calling
      HConnectionManager.deleteConnection(config, true);

      Attachments

        1. MetaScanner_HBASE_5466.patch
          3 kB
          Ashley Taylor
        2. MetaScanner_HBASE_5466(2).patch
          3 kB
          Ashley Taylor
        3. MetaScanner_HBASE_5466(3).patch
          3 kB
          Ashley Taylor

        Activity

          People

            ashleyt Ashley Taylor
            ashleyt Ashley Taylor
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: