assertTrue(testPath1 + " should exist after bad checkpoint, before restart",
fs.exists(testPath1));
assertTrue(testPath2 + " should exist after bad checkpoint, before restart",
fs.exists(testPath2));
cluster.restartNameNode();
// After restarting the NN, it will read the HDFS metadata from disk.
// Things should still be good.
assertTrue(testPath1 + " should exist after bad checkpoint, after restart",
fs.exists(testPath1));