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-8396) balancerSwitch making two zookeeper calls everytime.
Date Thu, 25 Apr 2013 00:33:14 GMT

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

Hudson commented on HBASE-8396:
-------------------------------

Integrated in hbase-0.95 #161 (See [https://builds.apache.org/job/hbase-0.95/161/])
    HBASE-8396 balancerSwitch making two zookeeper calls everytime(Rajeshbabu) (Revision 1471463)

     Result = FAILURE
anoopsamjohn : 
Files : 
* /hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/zookeeper/LoadBalancerTracker.java

                
> balancerSwitch making two zookeeper calls everytime.
> ----------------------------------------------------
>
>                 Key: HBASE-8396
>                 URL: https://issues.apache.org/jira/browse/HBASE-8396
>             Project: HBase
>          Issue Type: Bug
>          Components: Balancer
>            Reporter: rajeshbabu
>            Assignee: rajeshbabu
>             Fix For: 0.98.0, 0.95.1
>
>         Attachments: HBASE-8396.patch
>
>
> first time on balancerSwitch we will create balancerZnode.
> from second time onwards we will try to create node(1st time) which will fail with NodeExistsException
then we will call setData(2nd time).
> {code}
>     try {
>       ZKUtil.createAndWatch(watcher, watcher.balancerZNode, upData);
>     } catch(KeeperException.NodeExistsException nee) {
>       ZKUtil.setData(watcher, watcher.balancerZNode, upData);
>     }
> {code}
> We can change as below to avoid extra zk call from second time onwards.
> {code}
>     try {
>       ZKUtil.setData(watcher, watcher.balancerZNode, upData);
>     } catch(KeeperException.NoNodeException nne) {
>       ZKUtil.createAndWatch(watcher, watcher.balancerZNode, upData);
>     }
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message