394395396397398399400401402403404
// Should have no problem in restart and replaying edits that include // the FINALIZE op. dfsCluster.restartNameNode(0); } finally { if (cluster != null) { cluster.shutdown(); } } } @Test (timeout = 300000)
430431432433434435436437438439440
// 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)
502503504505506507508509510511512
} Assert.fail("new checkpoint does not exist"); } finally { if (cluster != null) { cluster.shutdown(); } } } static void queryForPreparation(DistributedFileSystem dfs) throws IOException,
390391392393394395396397398399400
// Once finalized, there should be no more fsimage for rollbacks. Assert.assertFalse(fsimage.hasRollbackFSImage()); } finally { if (cluster != null) { cluster.shutdown(); } } } @Test (timeout = 300000)
426427428429430431432433434435436
498499500501502503504505506507508
270271272273274275276277278279280
// status after the rollback dfsCluster.transitionToActive(0); dfs.rollingUpgrade(RollingUpgradeAction.PREPARE); } finally { if (cluster != null) { cluster.shutdown(); } } } // TODO: rollback could not succeed in all JN
359360361362363364365366367368369
} finally { if (fs != null) { fs.close(); } if (qjCluster != null) { qjCluster.shutdown(); } } } @Test
417418419420421422423424425426427
} finally { if (fs != null) { fs.close(); } if (qjCluster != null) { qjCluster.shutdown(); } } } /**
482483484485486487488489490491492