NameNode nn = cluster.getNameNode();
String clientName = ((DistributedFileSystem) fs).getClient().clientName;
fs.create(new Path(src));
for (int i = 0; i < 10; i++) {
Block b = nn.addBlock(src, clientName).getBlock();
nn.abandonBlock(b, src, clientName);
}
fs.create(new Path(src1));
nn.addBlock(src1, clientName);
cluster.restartNameNode(0, new String[] {}, false);
nn = cluster.getNameNode();