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

Hudson commented on HBASE-19979:
--------------------------------

FAILURE: Integrated in Jenkins build HBase-Trunk_matrix #4579 (See 
[https://builds.apache.org/job/HBase-Trunk_matrix/4579/])
HBASE-19979 ReplicationSyncUp tool may leak Zookeeper connection (stack: rev 
39e191e5598529c68007c96e69acdd923a294d33)
* (edit) 
hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSyncUp.java


> ReplicationSyncUp tool may leak Zookeeper connection
> ----------------------------------------------------
>
>                 Key: HBASE-19979
>                 URL: https://issues.apache.org/jira/browse/HBASE-19979
>             Project: HBase
>          Issue Type: Bug
>          Components: Replication
>            Reporter: Pankaj Kumar
>            Assignee: Pankaj Kumar
>            Priority: Major
>             Fix For: 1.5.0, 2.0.0-beta-2, 1.4.2
>
>         Attachments: HBASE-19979-branch-1.001.patch, HBASE-19979.patch
>
>
> ReplicationSyncUp tool may leak Zookeeper connection in the following code 
> snippet,
> {code}
>     try {
>       int numberOfOldSource = 1; // default wait once
>       while (numberOfOldSource > 0) {
>         Thread.sleep(SLEEP_TIME);
>         numberOfOldSource = manager.getOldSources().size();
>       }
>     } catch (InterruptedException e) {
>       System.err.println("didn't wait long enough:" + e);
>       return (-1);
>     }
>     manager.join();
>     zkw.close();
> {code}
> ZooKeeperWatcher will not be closed in case of InterruptedException.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to