use of org.testng.annotations.AfterClass in project incubator-gobblin by apache.
the class FsDatasetStateStoreTest method tearDown.
@AfterClass
public void tearDown() throws IOException {
FileSystem fs = FileSystem.getLocal(new Configuration(false));
Path rootDir = new Path(FsDatasetStateStoreTest.class.getSimpleName());
if (fs.exists(rootDir)) {
fs.delete(rootDir, true);
}
}
use of org.testng.annotations.AfterClass in project incubator-gobblin by apache.
the class HeapDumpForTaskUtilsTest method tearDown.
@AfterClass
public void tearDown() throws IOException {
fs.delete(new Path(TEST_DIR), true);
fs.close();
}
use of org.testng.annotations.AfterClass in project incubator-gobblin by apache.
the class OrchestratorTest method cleanUp.
@AfterClass
public void cleanUp() throws Exception {
// Shutdown Catalog
this.serviceLauncher.stop();
File specStoreDir = new File(SPEC_STORE_PARENT_DIR);
if (specStoreDir.exists()) {
FileUtils.deleteDirectory(specStoreDir);
}
}
use of org.testng.annotations.AfterClass in project incubator-gobblin by apache.
the class TopologyCatalogTest method cleanUp.
@AfterClass
public void cleanUp() throws Exception {
// Shutdown Catalog
this.serviceLauncher.stop();
File specStoreDir = new File(SPEC_STORE_DIR);
if (specStoreDir.exists()) {
FileUtils.deleteDirectory(specStoreDir);
}
}
use of org.testng.annotations.AfterClass in project pinot by linkedin.
the class HybridClusterIntegrationTest method tearDown.
@AfterClass
public void tearDown() throws Exception {
// Try deleting the tables and check that they have no routing table
dropOfflineTable(getTableName());
dropRealtimeTable(getTableName());
long endTime = System.currentTimeMillis() + 15000;
boolean isRoutingTableEmpty = false;
JSONObject routingTableSnapshot = null;
while (System.currentTimeMillis() < endTime) {
try {
routingTableSnapshot = getDebugInfo("debug/routingTable/" + getTableName());
if (routingTableSnapshot.getJSONArray("routingTableSnapshot").length() == 0) {
isRoutingTableEmpty = true;
break;
}
} catch (Exception e) {
// Will retry in a bit
}
Uninterruptibles.sleepUninterruptibly(500, TimeUnit.MILLISECONDS);
}
Assert.assertTrue(isRoutingTableEmpty, "Routing table is not empty, last snapshot is " + routingTableSnapshot.toString());
stopBroker();
stopController();
stopServer();
KafkaStarterUtils.stopServer(kafkaStarter);
try {
stopZk();
} catch (Exception e) {
// Swallow ZK Exceptions.
}
cleanup();
}
Aggregations