Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-5722

NPE in ZKUtil#getChildDataAndWatchForNewChildren when ZK not available or NW down.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.94.0, 0.95.2
    • Fix Version/s: 0.94.1, 0.95.0
    • Component/s: Zookeeper
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      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));
          }
      

      The above code can throw NPE when listChildrenAndWatchForNewChildren returns null.

        Attachments

        1. HBASE-5722.patch
          3 kB
          Uma Maheswara Rao G

          Activity

            People

            • Assignee:
              umamaheswararao Uma Maheswara Rao G
              Reporter:
              umamaheswararao Uma Maheswara Rao G
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: