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 (Created) (JIRA)" <ji...@apache.org> on 2012/04/05 11:31:34 UTC
[jira] [Created] (HBASE-5722) NPE in
ZKUtil#getChildDataAndWatchForNewChildren when ZK not available or NW down.
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
{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
[jira] [Commented] (HBASE-5722) NPE in
ZKUtil#getChildDataAndWatchForNewChildren when ZK not available or NW down.
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (HBASE-5722) NPE in
ZKUtil#getChildDataAndWatchForNewChildren when ZK not available or NW down.
Posted by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-5722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13285825#comment-13285825 ]
ramkrishna.s.vasudevan commented on HBASE-5722:
-----------------------------------------------
The comment above mentioned that the commit was done to 0.94, but it wasn't. I have committed it to 0.94. Just a mere copy paste. ensured that the test case passes.
> 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
[jira] [Closed] (HBASE-5722) NPE in
ZKUtil#getChildDataAndWatchForNewChildren when ZK not available or NW down.
Posted by "Lars Hofhansl (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-5722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lars Hofhansl closed HBASE-5722.
--------------------------------
> 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.94.1, 0.96.0
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HBASE-5722) NPE in
ZKUtil#getChildDataAndWatchForNewChildren when ZK not available or NW down.
Posted by "Uma Maheswara Rao G (Updated) (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (HBASE-5722) NPE in
ZKUtil#getChildDataAndWatchForNewChildren when ZK not available or NW down.
Posted by "Hadoop QA (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-5722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247717#comment-13247717 ]
Hadoop QA commented on HBASE-5722:
----------------------------------
-1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12521579/HBASE-5722.patch
against trunk revision .
+1 @author. The patch does not contain any @author tags.
+1 tests included. The patch appears to include 3 new or modified tests.
+1 javadoc. The javadoc tool did not generate any warning messages.
+1 javac. The applied patch does not increase the total number of javac compiler warnings.
-1 findbugs. The patch appears to introduce 2 new Findbugs (version 1.3.9) warnings.
+1 release audit. The applied patch does not increase the total number of release audit warnings.
-1 core tests. The patch failed these unit tests:
org.apache.hadoop.hbase.coprocessor.TestRowProcessorEndpoint
Test results: https://builds.apache.org/job/PreCommit-HBASE-Build/1414//testReport/
Findbugs warnings: https://builds.apache.org/job/PreCommit-HBASE-Build/1414//artifact/trunk/patchprocess/newPatchFindbugsWarnings.html
Console output: https://builds.apache.org/job/PreCommit-HBASE-Build/1414//console
This message is automatically generated.
> 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
[jira] [Commented] (HBASE-5722) NPE in
ZKUtil#getChildDataAndWatchForNewChildren when ZK not available or NW down.
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-5722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247996#comment-13247996 ]
Hudson commented on HBASE-5722:
-------------------------------
Integrated in HBase-TRUNK-security #159 (See [https://builds.apache.org/job/HBase-TRUNK-security/159/])
HBASE-5722 NPE in ZKUtil#getChildDataAndWatchForNewChildren when ZK not available or NW down. (Revision 1310104)
Result = FAILURE
stack :
Files :
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java
* /hbase/trunk/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.96.0
> Reporter: Uma Maheswara Rao G
> Assignee: Uma Maheswara Rao G
> Fix For: 0.94.0
>
> 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
[jira] [Updated] (HBASE-5722) NPE in
ZKUtil#getChildDataAndWatchForNewChildren when ZK not available or NW down.
Posted by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-5722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ramkrishna.s.vasudevan updated HBASE-5722:
------------------------------------------
Affects Version/s: 0.94.0
Fix Version/s: (was: 0.94.0)
0.94.1
0.96.0
> 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
[jira] [Updated] (HBASE-5722) NPE in
ZKUtil#getChildDataAndWatchForNewChildren when ZK not available or NW down.
Posted by "stack (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-5722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
stack updated HBASE-5722:
-------------------------
Resolution: Fixed
Fix Version/s: 0.94.0
Hadoop Flags: Reviewed
Status: Resolved (was: Patch Available)
Committed to 0.94 and trunk.
> 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
> Fix For: 0.94.0
>
> 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
[jira] [Commented] (HBASE-5722) NPE in
ZKUtil#getChildDataAndWatchForNewChildren when ZK not available or NW down.
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-5722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247822#comment-13247822 ]
Hudson commented on HBASE-5722:
-------------------------------
Integrated in HBase-TRUNK #2716 (See [https://builds.apache.org/job/HBase-TRUNK/2716/])
HBASE-5722 NPE in ZKUtil#getChildDataAndWatchForNewChildren when ZK not available or NW down. (Revision 1310104)
Result = SUCCESS
stack :
Files :
* /hbase/trunk/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java
* /hbase/trunk/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.96.0
> Reporter: Uma Maheswara Rao G
> Assignee: Uma Maheswara Rao G
> Fix For: 0.94.0
>
> 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
[jira] [Commented] (HBASE-5722) NPE in
ZKUtil#getChildDataAndWatchForNewChildren when ZK not available or NW down.
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-5722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13287176#comment-13287176 ]
Hudson commented on HBASE-5722:
-------------------------------
Integrated in HBase-0.94-security #33 (See [https://builds.apache.org/job/HBase-0.94-security/33/])
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
[jira] [Commented] (HBASE-5722) NPE in
ZKUtil#getChildDataAndWatchForNewChildren when ZK not available or NW down.
Posted by "stack (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-5722?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13247701#comment-13247701 ]
stack commented on HBASE-5722:
------------------------------
+1 on patch. Will wait on hadoopqa.
> 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
[jira] [Resolved] (HBASE-5722) NPE in
ZKUtil#getChildDataAndWatchForNewChildren when ZK not available or NW down.
Posted by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-5722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ramkrishna.s.vasudevan resolved HBASE-5722.
-------------------------------------------
Resolution: Fixed
> 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
[jira] [Updated] (HBASE-5722) NPE in
ZKUtil#getChildDataAndWatchForNewChildren when ZK not available or NW down.
Posted by "Uma Maheswara Rao G (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-5722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Uma Maheswara Rao G updated HBASE-5722:
---------------------------------------
Status: Patch Available (was: Open)
> 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
[jira] [Reopened] (HBASE-5722) NPE in
ZKUtil#getChildDataAndWatchForNewChildren when ZK not available or NW down.
Posted by "ramkrishna.s.vasudevan (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HBASE-5722?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ramkrishna.s.vasudevan reopened HBASE-5722:
-------------------------------------------
This got committed to 0.96 only and not to 0.94. Hence reopening so that once committed we can close it.
> 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