hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-15803) ZooKeeperWatcher's constructor can leak a ZooKeeper instance with throwing ZooKeeperConnectionException when canCreateBaseZNode is true
Date Tue, 07 Jun 2016 08:00:30 GMT

    [ https://issues.apache.org/jira/browse/HBASE-15803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15318087#comment-15318087
] 

Hudson commented on HBASE-15803:
--------------------------------

FAILURE: Integrated in HBase-Trunk_matrix #1002 (See [https://builds.apache.org/job/HBase-Trunk_matrix/1002/])
HBASE-15803 ZooKeeperWatcher's constructor can leak a ZooKeeper instance (tedyu: rev 7fd3532de63d7b1885d6993c11a35c2f85e26631)
* hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/ZooKeeperWatcher.java


> 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
>            Assignee: Ted Yu
>            Priority: Minor
>         Attachments: 15803.v1.txt, 15803.v2.txt
>
>
> {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