DataNode dn = cluster.getDataNodes().get(index);
Thread.sleep(3000);
dn.scheduleNSBlockReceivedAndDeleted(0);
Thread.sleep(3000);
LOG.info("Start a new node");
cluster.restartDataNode(dnprop);
cluster.waitActive(false);
// The block should be replicated
LOG.info("wait for the block to replicate");
NumberReplicas num;
long startTime = System.currentTimeMillis();