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

ThriftServer leaks ZooKeeper connections

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.98.8
    • 1.1.0, 0.98.13, 1.0.2, 2.0.0
    • Thrift
    • None
    • Reviewed

    Description

      HBase ThriftServer will cache Zookeeper connection in memory using org.apache.hadoop.hbase.util.ConnectionCache. This class has a mechanism called chore to clean up connections idle for too long(default is 10 min). But method timedOut for testing whether idle exceed for maxIdleTime always return false which leads to never release the Zookeeper connection. If we send request to ThriftServer every maxIdleTime then ThriftServer will keep thousands of Zookeeper Connection soon.

      Attachments

        1. HBASE-13437_1.patch
          3 kB
          Winger Pun
        2. HBASE-13437_1.patch
          3 kB
          Winger Pun
        3. hbase-13437-fix.patch
          0.6 kB
          Winger Pun

        Activity

          People

            fullung Albert Strasheim
            punwinger Winger Pun
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: