/** * Diagnostics method to dump a registry robustly. * Any exception raised is swallowed. * * @param verbose verbose path dump * @return the registry tree */ protected String dumpRegistryRobustly(boolean verbose) { try { ZKPathDumper pathDumper = dumpPath(verbose); return pathDumper.toString(); } catch (Exception e) { // ignore LOG.debug("Ignoring exception: {}", e); } return ""; }
/** * Diagnostics method to dump a registry robustly. * Any exception raised is swallowed * @param verbose verbose path dump * @return the registry tree */ protected String dumpRegistryRobustly(boolean verbose) { try { ZKPathDumper pathDumper = dumpPath(verbose); return pathDumper.toString(); } catch (Exception e) { // ignore LOG.debug("Ignoring exception: {}", e); } return ""; } }
curator.zkMkPath("/", CreateMode.PERSISTENT, false, RegistrySecurity.WorldReadWriteACL); ZKPathDumper pathDumper = curator.dumpPath(true); LOG.info(pathDumper.toString()); } finally {
curator.zkMkPath("/", CreateMode.PERSISTENT, false, RegistrySecurity.WorldReadWriteACL); ZKPathDumper pathDumper = curator.dumpPath(true); LOG.info(pathDumper.toString()); } finally {