hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From z..@apache.org
Subject hadoop git commit: HDFS-7369. Erasure coding: distribute recovery work for striped blocks to DataNode (an additional 1 line change to fix NPE). Contributed by Zhe Zhang.
Date Fri, 20 Mar 2015 17:45:06 GMT
Repository: hadoop
Updated Branches:
  refs/heads/HDFS-7285 180c54ca6 -> a42ffa8b7


HDFS-7369. Erasure coding: distribute recovery work for striped blocks to DataNode (an additional
1 line change to fix NPE). Contributed by Zhe Zhang.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/a42ffa8b
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/a42ffa8b
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/a42ffa8b

Branch: refs/heads/HDFS-7285
Commit: a42ffa8b77f406bc84509c2039c0bfa9af0f8526
Parents: 180c54c
Author: Zhe Zhang <zhz@apache.org>
Authored: Fri Mar 20 10:43:07 2015 -0700
Committer: Zhe Zhang <zhz@apache.org>
Committed: Fri Mar 20 10:43:07 2015 -0700

----------------------------------------------------------------------
 .../apache/hadoop/hdfs/server/blockmanagement/BlockManager.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/a42ffa8b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java
index aed8daf..a0f8fdc 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java
@@ -1758,7 +1758,7 @@ public class BlockManager {
     if(numReplicas != null) {
       numReplicas.initialize(live, decommissioned, corrupt, excess, 0);
     }
-    return srcNodes.toArray(new DatanodeDescriptor[numSourceNodes]);
+    return srcNodes.toArray(new DatanodeDescriptor[srcNodes.size()]);
   }
 
   /**


Mime
View raw message