LOG.debug("read block CRC from" + datanodes[j].getName() + ": "
+ DataTransferProtocol.OP_BLOCK_CRC + ", block=" + block);
}
/* Write the header */
BlockCrcHeader blockCrcHeader = new BlockCrcHeader(
dataTransferVersion, namespaceId, block.getBlockId(),
block.getGenerationStamp());
blockCrcHeader.writeVersionAndOpCode(out);
blockCrcHeader.write(out);
out.flush();
final short reply = in.readShort();
if (reply != DataTransferProtocol.OP_STATUS_SUCCESS) {
throw new IOException("Bad response " + reply + " for block "