@After public void tearDown() throws Exception { store.stop(); }
@After public void tearDown() throws Exception { store.stop(); }
@Override protected void serviceStop() throws Exception { LOG.info("Stopping {}", getName()); if (executor != null) { executor.shutdown(); if (executor.isTerminating()) { LOG.info("Waiting for executor to terminate"); boolean terminated = executor.awaitTermination(10, TimeUnit.SECONDS); if (terminated) { LOG.info("Executor terminated"); } else { LOG.warn("Executor did not terminate"); executor.shutdownNow(); } } } if (summaryTdm != null) { summaryTdm.stop(); } if (summaryStore != null) { summaryStore.stop(); } if (yarnClient != null) { yarnClient.stop(); } super.serviceStop(); }
@Override protected void serviceStop() throws Exception { LOG.info("Stopping {}", getName()); if (executor != null) { executor.shutdown(); if (executor.isTerminating()) { LOG.info("Waiting for executor to terminate"); boolean terminated = executor.awaitTermination(10, TimeUnit.SECONDS); if (terminated) { LOG.info("Executor terminated"); } else { LOG.warn("Executor did not terminate"); executor.shutdownNow(); } } } if (summaryTdm != null) { summaryTdm.stop(); } if (summaryStore != null) { summaryStore.stop(); } if (yarnClient != null) { yarnClient.stop(); } CallerContext.setCurrent(null); super.serviceStop(); }
@After public void tearDown() throws Exception { if (store != null) { store.stop(); } if (fsContext != null) { fsContext.delete(new Path(fsPath.getAbsolutePath()), true); } }
@After public void tearDown() throws Exception { store.stop(); fsContext.delete(new Path(fsPath.getAbsolutePath()), true); }
@After public void tearDown() throws Exception { store.stop(); fsContext.delete(new Path(fsPath.getAbsolutePath()), true); }