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-5722) NPE in ZKUtil#getChildDataAndWatchForNewChildren when ZK not available or NW down.
Date Wed, 30 May 2012 18:22:24 GMT

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

Hudson commented on HBASE-5722:
-------------------------------

Integrated in HBase-0.94 #233 (See [https://builds.apache.org/job/HBase-0.94/233/])
    HBASE-5722 NPE in ZKUtil#getChildDataAndWatchForNewChildren when ZK not available or NW
down. (Uma) (Revision 1344351)

     Result = FAILURE
ramkrishna : 
Files : 
* /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java
* /hbase/branches/0.94/src/test/java/org/apache/hadoop/hbase/TestZooKeeper.java

                
> NPE in ZKUtil#getChildDataAndWatchForNewChildren when ZK not available or NW down.
> ----------------------------------------------------------------------------------
>
>                 Key: HBASE-5722
>                 URL: https://issues.apache.org/jira/browse/HBASE-5722
>             Project: HBase
>          Issue Type: Bug
>          Components: zookeeper
>    Affects Versions: 0.94.0, 0.96.0
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>             Fix For: 0.96.0, 0.94.1
>
>         Attachments: HBASE-5722.patch
>
>
> {code}
> List<String> nodes =
>       ZKUtil.listChildrenAndWatchForNewChildren(zkw, baseNode);
>     List<NodeAndData> newNodes = new ArrayList<NodeAndData>();
>     for (String node: nodes) {
>       String nodePath = ZKUtil.joinZNode(baseNode, node);
>       byte [] data = ZKUtil.getDataAndWatch(zkw, nodePath);
>       newNodes.add(new NodeAndData(nodePath, data));
>     }
> {code}
> The above code can throw NPE when listChildrenAndWatchForNewChildren returns null.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message