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

ThriftServer leaks ZooKeeper connections

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.98.8
    • Fix Version/s: 1.1.0, 0.98.13, 1.0.2, 2.0.0
    • Component/s: Thrift
    • Labels:
      None
    • Hadoop Flags:
      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-fix.patch
          0.6 kB
          Winger Pun
        2. HBASE-13437_1.patch
          3 kB
          Winger Pun
        3. HBASE-13437_1.patch
          3 kB
          Winger Pun

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: