/** * 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 ""; } }
/** * test that ZK can write as itself * @throws Throwable */ @Test public void testZookeeperCanWriteUnderSystem() throws Throwable { RMRegistryOperationsService rmRegistryOperations = startRMRegistryOperations(); RegistryOperations operations = rmRegistryOperations; operations.mknode(PATH_SYSTEM_SERVICES + "hdfs", false); ZKPathDumper pathDumper = rmRegistryOperations.dumpPath(true); LOG.info(pathDumper.toString()); }
RegistrySecurity.WorldReadWriteACL); ZKPathDumper pathDumper = curator.dumpPath(true); LOG.info(pathDumper.toString()); } finally { logout(login);
RegistrySecurity.WorldReadWriteACL); ZKPathDumper pathDumper = curator.dumpPath(true); LOG.info(pathDumper.toString()); } finally { logout(login);
operations.mknode(base + "/subdir", false); ZKPathDumper pathDumper = registryAdmin.dumpPath(true); LOG.info(pathDumper.toString());
LOG.info(pathDumper.toString());