hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiroshi Ikeda (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-15803) ZooKeeperWatcher's constructor can leak a ZooKeeper instance with throwing ZooKeeperConnectionException when canCreateBaseZNode is true
Date Mon, 09 May 2016 06:14:12 GMT
Hiroshi Ikeda created HBASE-15803:
-------------------------------------

             Summary: ZooKeeperWatcher's constructor can leak a ZooKeeper instance with throwing
ZooKeeperConnectionException when canCreateBaseZNode is true
                 Key: HBASE-15803
                 URL: https://issues.apache.org/jira/browse/HBASE-15803
             Project: HBase
          Issue Type: Bug
            Reporter: Hiroshi Ikeda
            Priority: Minor


{code}
  public ZooKeeperWatcher(Configuration conf, String identifier,
      Abortable abortable, boolean canCreateBaseZNode)
  throws IOException, ZooKeeperConnectionException {
...skip...
    this.recoverableZooKeeper = ZKUtil.connect(...
...skip...
    if (canCreateBaseZNode) {
      createBaseZNodes();
    }
  }

  private void createBaseZNodes() throws ZooKeeperConnectionException {
{code}

The registered watcher doesn't seem to close the Zookeeper instance by watch events, and the
instance keeps alive when createBaseZNodes is failed.



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

Mime
View raw message