@VisibleForTesting void disconnectHelixManager() { if (this.jobHelixManager.isConnected()) { this.jobHelixManager.disconnect(); } if (this.taskDriverHelixManager.isPresent()) { this.taskDriverHelixManager.get().disconnect(); } }
public void shutdown() { LOGGER.info("Shutting down"); if (_helixManager != null) { LOGGER.info("Disconnecting Helix manager"); _helixManager.disconnect(); } if (_spectatorHelixManager != null) { LOGGER.info("Disconnecting spectator Helix manager"); _spectatorHelixManager.disconnect(); } if (_tbiMessageHandler != null) { LOGGER.info("Shutting down timeboundary info refresh message handler"); _tbiMessageHandler.shutdown(); } }
/** * Stop the Pinot controller instance. */ public synchronized void stop() { _segmentDeletionManager.stop(); _helixZkManager.disconnect(); }
@VisibleForTesting void disconnectHelixManager() { if (this.helixManager.isConnected()) { this.helixManager.disconnect(); } }
@VisibleForTesting void disconnectHelixManager() { if (this.helixManager.isConnected()) { this.helixManager.disconnect(); } }
@Override public void close() throws IOException { helixManager.disconnect(); } });
@VisibleForTesting void disconnectHelixManager() { if (isHelixManagerConnected()) { if (this.helixManager.isPresent()) { this.helixManager.get().disconnect(); } } }
/** * Stop the Pinot Minion instance. */ public void stop() { try { LOGGER.info("Closing PinotFS classes"); PinotFSFactory.shutdown(); } catch (IOException e) { LOGGER.warn("Caught exception closing PinotFS classes", e); } LOGGER.info("Stopping Pinot minion: " + _instanceId); _helixManager.disconnect(); LOGGER.info("Pinot minion stopped"); }
private void stopFakeServer() { _serverHelixManager.disconnect(); }
protected void disconnect() { if (managerClusterHelixManager.isConnected()) { this.managerClusterHelixManager.disconnect(); } if (this.dedicatedManagerCluster) { if (jobClusterHelixManager.isConnected()) { this.jobClusterHelixManager.disconnect(); } if (taskDriverHelixManager.isPresent()) { this.taskDriverHelixManager.get().disconnect(); } if (jobClusterController.isPresent() && jobClusterController.get().isConnected()) { this.jobClusterController.get().disconnect(); } if (taskDriverClusterController.isPresent() && taskDriverClusterController.get().isConnected()) { this.taskDriverClusterController.get().disconnect(); } } }
public void stop() { try { LOGGER.info("Closing PinotFS classes"); PinotFSFactory.shutdown(); } catch (IOException e) { LOGGER.warn("Caught exception closing PinotFS classes", e); } _adminApiApplication.stop(); setShuttingDownStatus(true); // Total waiting time should include max query time. final long endTime = _maxShutdownWaitTimeMs + System.currentTimeMillis(); if (_helixServerConfig.getBoolean(CommonConstants.Server.CONFIG_OF_ENABLE_SHUTDOWN_DELAY, true)) { Uninterruptibles.sleepUninterruptibly(_maxQueryTimeMs, TimeUnit.MILLISECONDS); } waitUntilNoIncomingQueries(System.currentTimeMillis(), endTime); _helixManager.disconnect(); _serverInstance.shutDown(); waitUntilNoOnlineResources(System.currentTimeMillis(), endTime); }
LOGGER.error("Exception waiting until no online resources. Skip checking external view.", e); } finally { spectatorManager.disconnect();
@AfterClass public void tearDown() throws IOException { try { if (this.helixManager.isConnected()) { this.helixManager.disconnect(); } this.localFs.delete(this.baseDir, true); } catch (Throwable t) { throw this.closer.rethrow(t); } finally { this.closer.close(); } }
@AfterClass public void tearDown() throws IOException, TimeoutException { try { this.gobblinAwsClusterLauncher.stop(); if (this.helixManager.isConnected()) { this.helixManager.disconnect(); } this.gobblinAwsClusterLauncher.disconnectHelixManager(); } finally { this.closer.close(); } }
@AfterClass public void tearDown() throws Exception { try { if (this.helixManager.isConnected()) { this.helixManager.disconnect(); } this.gobblinClusterManager.disconnectHelixManager(); } catch (Throwable t) { Assert.fail(); } finally { this.testingZKServer.close(); } }
@AfterClass public void tearDown() throws IOException, TimeoutException { try { Files.deleteIfExists(Paths.get(DYNAMIC_CONF_PATH)); Files.deleteIfExists(Paths.get(YARN_SITE_XML_PATH)); this.gobblinYarnAppLauncher.stopYarnClient(); if (this.helixManager.isConnected()) { this.helixManager.disconnect(); } this.gobblinYarnAppLauncher.disconnectHelixManager(); if (applicationId != null) { this.gobblinYarnAppLauncher.cleanUpAppWorkDirectory(applicationId); } } finally { this.closer.close(); } }
public synchronized void stop() { LOGGER.info("Trying to stop HelixMirrorMakerManager!"); _helixZkManager.disconnect(); }
public void stop() throws Exception { LOGGER.info(String.format("Shutdown fakeInstance: %s", _instanceId)); _helixZkManager.disconnect(); }
@VisibleForTesting void disconnectHelixManager() { if (this.helixManager.isConnected()) { this.helixManager.disconnect(); } }
@VisibleForTesting void disconnectHelixManager() { if (isHelixManagerConnected()) { if (this.helixManager.isPresent()) { this.helixManager.get().disconnect(); } } }