namesystem.heartbeats.toArray(
new DatanodeDescriptor[1]);
assertEquals(1, datanodes.length);
// shutdown the datanode
DataNodeProperties dnprop = shutdownDataNode(cluster, datanodes[0]);
assertEquals(rsCodec.numStripeBlocks, namesystem.getRaidMissingBlocksCount());
assertEquals(0, namesystem.getMissingBlocksCount()); // zero non-raid missing block
assertEquals(0, namesystem.getNonCorruptUnderReplicatedBlocks());
// bring up the datanode