MAPREDUCE-3332. contrib/raid compile breaks due to changes in hdfs/protocol/datatransfer/Sender#writeBlock related to checksum handling (Hitesh Shah via mahadev)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1196356 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mahadev Konar 2011-11-01 23:07:56 +00:00
parent eee85adecf
commit bb35bff29b
2 changed files with 4 additions and 1 deletions

View File

@ -1909,6 +1909,9 @@ Release 0.23.0 - 2011-11-01
MAPREDUCE-3317. Rumen TraceBuilder is emiting null as hostname.
(Ravi Gummadi via mahadev)
MAPREDUCE-3332. contrib/raid compile breaks due to changes in hdfs/protocol/datatransfer/
Sender#writeBlock related to checksum handling (Hitesh Shah via mahadev)
Release 0.22.0 - Unreleased
INCOMPATIBLE CHANGES

View File

@ -782,7 +782,7 @@ private void sendFixedBlock(DatanodeInfo datanode,
DatanodeInfo[] nodes = new DatanodeInfo[]{datanode};
new Sender(out).writeBlock(block.getBlock(), block.getBlockToken(), "",
nodes, null, BlockConstructionStage.PIPELINE_SETUP_CREATE,
1, 0L, blockSize, 0L);
1, 0L, blockSize, 0L, DataChecksum.newDataChecksum(metadataIn));
blockSender.sendBlock(out, baseStream);
LOG.info("Sent block " + block.getBlock() + " to " + datanode.name);