hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allan Yang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-15474) Exception in HConnectionImplementation's constructor cause Zookeeper connnections leak
Date Thu, 17 Mar 2016 01:36:33 GMT
Allan Yang created HBASE-15474:
----------------------------------

             Summary: Exception in HConnectionImplementation's constructor cause Zookeeper
connnections leak 
                 Key: HBASE-15474
                 URL: https://issues.apache.org/jira/browse/HBASE-15474
             Project: HBase
          Issue Type: Bug
    Affects Versions: 1.1.0
            Reporter: Allan Yang
            Assignee: Allan Yang


HConnectionImplementation creates a ZooKeeperKeepAliveConnection during construction, but
if the constructor throw a exception, the zookeeper connection is not properly closed. 
{code}
HConnectionImplementation(Configuration conf, boolean managed,
        ExecutorService pool, User user) throws IOException {
      this(conf);
      this.user = user;
      this.batchPool = pool;
      this.managed = managed;
      this.registry = setupRegistry();
      retrieveClusterId(); //here is the zookeeper connection created
        this.rpcClient = RpcClientFactory.createClient(this.conf, this.clusterId);
        this.rpcControllerFactory = RpcControllerFactory.instantiate(conf);// In our case,
the exception happens here, so the zookeeper connection never close
        ......
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message