hadoop-mapreduce-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From szets...@apache.org
Subject svn commit: r1139400 - in /hadoop/common/trunk/mapreduce: CHANGES.txt src/contrib/raid/src/java/org/apache/hadoop/raid/BlockFixer.java
Date Fri, 24 Jun 2011 18:21:55 GMT
Author: szetszwo
Date: Fri Jun 24 18:21:55 2011
New Revision: 1139400

URL: http://svn.apache.org/viewvc?rev=1139400&view=rev
Log:
MAPREDUCE-2620. Update RAID for HDFS-2087.

Modified:
    hadoop/common/trunk/mapreduce/CHANGES.txt
    hadoop/common/trunk/mapreduce/src/contrib/raid/src/java/org/apache/hadoop/raid/BlockFixer.java

Modified: hadoop/common/trunk/mapreduce/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/mapreduce/CHANGES.txt?rev=1139400&r1=1139399&r2=1139400&view=diff
==============================================================================
--- hadoop/common/trunk/mapreduce/CHANGES.txt (original)
+++ hadoop/common/trunk/mapreduce/CHANGES.txt Fri Jun 24 18:21:55 2011
@@ -310,6 +310,8 @@ Trunk (unreleased changes)
     MAPREDUCE-2550. Fix bin/mapred to work properly from within a source
     checkout (Eric Yang via todd)
 
+    MAPREDUCE-2620. Update RAID for HDFS-2087.  (szetszwo)
+
 Release 0.22.0 - Unreleased
 
   INCOMPATIBLE CHANGES

Modified: hadoop/common/trunk/mapreduce/src/contrib/raid/src/java/org/apache/hadoop/raid/BlockFixer.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/mapreduce/src/contrib/raid/src/java/org/apache/hadoop/raid/BlockFixer.java?rev=1139400&r1=1139399&r2=1139400&view=diff
==============================================================================
--- hadoop/common/trunk/mapreduce/src/contrib/raid/src/java/org/apache/hadoop/raid/BlockFixer.java
(original)
+++ hadoop/common/trunk/mapreduce/src/contrib/raid/src/java/org/apache/hadoop/raid/BlockFixer.java
Fri Jun 24 18:21:55 2011
@@ -780,11 +780,9 @@ public abstract class BlockFixer extends
                               });
         
         DatanodeInfo[] nodes = new DatanodeInfo[]{datanode};
-        Sender.opWriteBlock(out, block.getBlock(), 1,
-                                                 BlockConstructionStage.
-                                                 PIPELINE_SETUP_CREATE,
-                                                 0, blockSize, 0, "", null,
-                                                 nodes, block.getBlockToken());
+        new Sender(out).writeBlock(block.getBlock(), block.getBlockToken(), "",
+            nodes, null, BlockConstructionStage.PIPELINE_SETUP_CREATE,
+            1, 0L, blockSize, 0L);
         blockSender.sendBlock(out, baseStream);
         
         LOG.info("Sent block " + block.getBlock() + " to " + datanode.name);



Mime
View raw message