You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Uma Maheswara Rao G (Updated) (JIRA)" <ji...@apache.org> on 2012/04/05 23:28:23 UTC

[jira] [Updated] (HBASE-5722) NPE in ZKUtil#getChildDataAndWatchForNewChildren when ZK not available or NW down.

     [ https://issues.apache.org/jira/browse/HBASE-5722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Uma Maheswara Rao G updated HBASE-5722:
---------------------------------------

    Attachment: HBASE-5722.patch
    
> 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.96.0
>            Reporter: Uma Maheswara Rao G
>            Assignee: Uma Maheswara Rao G
>         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