hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ji...@apache.org
Subject hadoop git commit: HDFS-7872. Erasure Coding: INodeFile.dumpTreeRecursively() supports to print striped blocks. Contributed by Takuya Fukudome.
Date Fri, 06 Mar 2015 00:46:19 GMT
Repository: hadoop
Updated Branches:
  refs/heads/HDFS-7285 74e174689 -> 80401779f


HDFS-7872. Erasure Coding: INodeFile.dumpTreeRecursively() supports to print striped blocks.
Contributed by Takuya Fukudome.


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

Branch: refs/heads/HDFS-7285
Commit: 80401779f57f3ad82d4eddc146db27629ff83cda
Parents: 74e1746
Author: Jing Zhao <jing9@apache.org>
Authored: Thu Mar 5 16:44:38 2015 -0800
Committer: Jing Zhao <jing9@apache.org>
Committed: Thu Mar 5 16:44:57 2015 -0800

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hdfs/server/namenode/INodeFile.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/80401779/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodeFile.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodeFile.java
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodeFile.java
index da12e68..a876f99 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodeFile.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodeFile.java
@@ -861,8 +861,8 @@ public class INodeFile extends INodeWithAdditionalFields
     out.print(", fileSize=" + computeFileSize(snapshotId));
     // only compare the first block
     out.print(", blocks=");
-    out.print(blocks == null || blocks.length == 0? null: blocks[0]);
-    // TODO print striped blocks
+    BlockInfo[] blks = getBlocks();
+    out.print(blks == null || blks.length == 0? null: blks[0]);
     out.println();
   }
 


Mime
View raw message