DFSTestUtil.createFile(fs, fileName, 2, (short)3, 0L);
DFSTestUtil.waitReplication(fs, fileName, (short)3);
// corrupt the block on datanode 0
Block block = DFSTestUtil.getFirstBlock(fs, fileName);
assertTrue(cluster.corruptReplica(block.getBlockName(), 0));
DataNodeProperties dnProps = cluster.stopDataNode(0);
// remove block scanner log to trigger block scanning
File scanLog = new File(System.getProperty("test.build.data"),
"dfs/data/data1" + MiniDFSCluster.FINALIZED_DIR_NAME +
"dncp_block_verification.log.curr");