void internalClose() { super.close(); } }
private synchronized void resetZooKeeperTrackers() { if (masterAddressTracker != null) { masterAddressTracker.stop(); masterAddressTracker = null; } clusterId = null; if (zooKeeper != null) { zooKeeper.close(); zooKeeper = null; } }
/** * @see java.io.Closeable#close() */ @Override public void close() throws IOException { if (this.closed) { return; } for (FClientCallable callable : callables.values()) { callable.close(); } fserverTracker = null; zooKeeper.close(); if (this.connection != null) { this.connection.close(); } this.closed = true; }
@After public void after() throws KeeperException { if (this.watcher != null) { // Clean up all znodes ZKAssign.deleteAllNodes(this.watcher); this.watcher.close(); } }
} finally { if (zkw != null) { zkw.close();
this.zooKeeper.close(); LOG.info("stopping server " + this.serverNameFromMasterPOV + "; zookeeper connection closed.");
if (this.assignmentManager != null) this.assignmentManager.stop(); this.zooKeeper.close();