protected void logZKTree(String root, String prefix) throws KeeperException {
    List<String> children = ZKUtil.listChildrenNoWatch(watcher, root);
    if (children == null) return;
    for (String child : children) {
      LOG.debug(prefix + child);
      String node = ZNodePaths.joinZNode(root.equals("/") ? "" : root, child);
      logZKTree(node, prefix + "---");
    }
  }
Helper method to print the current state of the ZK tree.
@see #logZKTree(String)
@throws KeeperException if an unexpected exception occurs
hbase-server/src/main/java/org/apache/hadoop/hbase/procedure/ZKProcedureUtil.java