// ephemeral nodes in order to remove a parent persistent node)
return;
}
if (keepSet.contains(path.toString())) {
try {
ZooKeeperIface zk = getZk();
byte[] data = zk.getData(path.toString(), false, null);
if (data != null &&
keyword.equals(ZkUtil.bytesToString(data))
) {
zk.setData(path.toString(), new byte[0], -1);
}
List<String> children = zk.getChildren(path.toString(), null);
for (String child : children) {
internalPrunePersistent(path.appendChild(child), keyword, keepSet);
}
} catch (KeeperException.NoNodeException e) {
// If the node disappears while scanning it, then just ignore