TestDatanodeBlockScanner.corruptReplica(block.getBlockName(), 0);
File scanLog = new File(System.getProperty("test.build.data"),
"dfs/data/data1/current/dncp_block_verification.log.curr");
assertTrue(scanLog.delete());
// restart the datanode so the corrupt replica will be detected
cluster.restartDataNode(0);
DFSTestUtil.waitReplication(fs, fileName, (short)2);
final DatanodeID corruptDataNode =
cluster.getDataNodes().get(2).dnRegistration;
final FSNamesystem namesystem = FSNamesystem.getFSNamesystem();