@After public void shutDown() throws IOException { fs.close(); }
@AfterClass public static void teardownClass() throws IOException { fs.close(); }
@After public void shutDown() throws IOException { fs.close(); }
@After public void shutDown() throws IOException { fs.close(); }
private void closeDfs(DistributedFileSystem dfs) { try { if (dfs != null) dfs.close(); } catch (Exception ignored) { // nothing we can do ignored.printStackTrace(); } }
@After public void shutDownCluster() throws IOException { if (fs != null) fs.close(); if (cluster != null) { cluster.shutdownDataNodes(); cluster.shutdown(); } }
@After public void shutDownCluster() throws IOException { if(dfs != null) { dfs.close(); } if(cluster != null) { cluster.shutdownDataNodes(); cluster.shutdown(); } }
@AfterClass public static void tearDown() throws Exception { AppendTestUtil.LOG.info("tearDown()"); if(fs != null) fs.close(); if(cluster != null) cluster.shutdown(); }
@Test public void testDFSCloseOrdering() throws Exception { DistributedFileSystem fs = new MyDistributedFileSystem(); Path path = new Path("/a"); fs.deleteOnExit(path); fs.close(); InOrder inOrder = inOrder(fs.dfs); inOrder.verify(fs.dfs).closeOutputStreams(eq(false)); inOrder.verify(fs.dfs).delete(eq(path.toString()), eq(true)); inOrder.verify(fs.dfs).close(); }
@After public void shutDownCluster() throws IOException { dfs.close(); cluster.shutdown(); }
@After public void shutDownCluster() throws IOException { if (cluster != null) { fs.close(); cluster.shutdown(); cluster = null; } }
@AfterClass public static void tearDown() throws IOException { if(dfs != null) { dfs.close(); } if(cluster != null) { cluster.shutdown(); } }
@After public void clusterShutdown() throws IOException{ if(fs != null) { fs.close(); } if(cluster != null) { cluster.shutdown(); } }
@After public void shutDownCluster() throws IOException { if (cluster != null) { fs.close(); cluster.shutdown(); cluster = null; } }
@After public void teardown() throws IOException { if (fs != null) { fs.close(); } if (cluster != null) { cluster.shutdown(); } }
@AfterClass public static void tearDown() throws IOException { if(fs != null) fs.close(); if(cluster != null) cluster.shutdown(); }
@After public void shutDownCluster() throws IOException { if (cluster != null) { fs.close(); cluster.shutdown(); cluster = null; } }
@After public void tearDown() throws Exception { fs.close(); cluster.shutdown(); }
@AfterClass public static void tearDown() throws Exception { if(hdfs != null) hdfs.close(); if(cluster != null) cluster.shutdown(); }
@After public void tearDown() throws IOException { fs.delete(PATH, false); if (cluster != null) { fs.close(); cluster.shutdown(); cluster = null; } }