public void testBlocksMisMatch() throws Exception {
int totalBlocks = 50;
DFSTestUtil.createFile(fs, new Path("/testBlocksMisMatch"),
(long) totalBlocks * 1024, (short) 3, System.currentTimeMillis());
AvatarNode standby = cluster.getStandbyAvatar(0).avatar;
standby.quiesceStandby(cluster
.getPrimaryAvatar(0).avatar.getLastWrittenTxId());
// This sets the standby number of blocks to 0.
standby.namesystem.close();
try {
cluster.failOver();