@Override public void stop() { try { cluster.stop(); } catch (Exception e) { Throwables.throwIfUnchecked(e); throw new RuntimeException(e); } }
void tearDown() throws Exception { cf.close(); testingCluster.stop(); }
@After public void tearDown() throws Exception { announcer.stop(); cf.close(); testingCluster.stop(); }
@After public void tearDown() throws Exception { workerCuratorCoordinator.stop(); workerTaskMonitor.stop(); cf.close(); testingCluster.stop(); }
@After public void tearDown() throws Exception { batchServerInventoryView.stop(); filteredBatchServerInventoryView.stop(); serverAnnouncer.unannounce(); announcer.stop(); cf.close(); testingCluster.stop(); }
@Override public void stop() { try { cluster.stop(); } catch (Exception e) { throw Throwables.propagate(e); } }
public static synchronized void stopZookeeperCluster() { if (server != null) { try { server.stop(); } catch (IOException e) { throw new RuntimeException(e); } server = null; File file1 = new File(DATA_DIR + "1"); File file2 = new File(DATA_DIR + "2"); File file3 = new File(DATA_DIR + "3"); FileHelper.deleteDir(file1); FileHelper.deleteDir(file2); FileHelper.deleteDir(file3); } }
public static synchronized void stopZookeeperCluster() { if (server != null) { try { server.stop(); } catch (IOException e) { throw new RuntimeException(e); } server = null; File file1 = new File(DATA_DIR + "1"); File file2 = new File(DATA_DIR + "2"); File file3 = new File(DATA_DIR + "3"); FileHelper.deleteDir(file1); FileHelper.deleteDir(file2); FileHelper.deleteDir(file3); } }
@Test public void testZKClusterDown() throws Exception { rm1 = startRM("rm1", HAServiceState.ACTIVE); // stop zk cluster zkCluster.stop(); waitFor(rm1, HAServiceState.STANDBY); Collection<InstanceSpec> instanceSpecs = zkCluster.getInstances(); zkCluster = new TestingCluster(instanceSpecs); zkCluster.start(); // rm becomes active again waitFor(rm1, HAServiceState.ACTIVE); }