657658659660661662663664665666667
} finally { if (fs != null) { fs.close(); } if (qjCluster != null) { qjCluster.shutdown(); } } } /**
7778798081828384858687
dfs = dfsCluster.getFileSystem(0); Assert.assertTrue(dfs.exists(foo)); Assert.assertTrue(dfs.exists(bar)); } finally { if (cluster != null) { cluster.shutdown(); } } } /**
389390391392393394395396397398399
// Once finalized, there should be no more fsimage for rollbacks. Assert.assertFalse(fsimage.hasRollbackFSImage()); } finally { if (cluster != null) { cluster.shutdown(); } } } @Test (timeout = 300000)
425426427428429430431432433434435
// The NN should have a copy of the fsimage in case of rollbacks. Assert.assertTrue(dfsCluster.getNamesystem(0).getFSImage() .hasRollbackFSImage()); } finally { if (cluster != null) { cluster.shutdown(); } } } @Test (timeout = 300000)
497498499500501502503504505506507
} Assert.fail("new checkpoint does not exist"); } finally { if (cluster != null) { cluster.shutdown(); } } } static void queryForPreparation(DistributedFileSystem dfs) throws IOException,