hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Takuya Fukudome (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-7872) Erasure Coding: INodeFile.dumpTreeRecursively() supports to print striped blocks
Date Fri, 06 Mar 2015 01:03:11 GMT

    [ https://issues.apache.org/jira/browse/HDFS-7872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14349718#comment-14349718
] 

Takuya Fukudome commented on HDFS-7872:
---------------------------------------

Thank you very much for review and commit, [~jingzhao]!

> Erasure Coding: INodeFile.dumpTreeRecursively() supports to print striped blocks
> --------------------------------------------------------------------------------
>
>                 Key: HDFS-7872
>                 URL: https://issues.apache.org/jira/browse/HDFS-7872
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: Takuya Fukudome
>            Assignee: Takuya Fukudome
>             Fix For: HDFS-7285
>
>         Attachments: HDFS-7872.1.patch, HDFS-7872.2.patch
>
>
> We need to let dumpTreeRecursively be able to print striped blocks (or maybe just the
first striped block).
> {code}
>   @Override
>   public void dumpTreeRecursively(PrintWriter out, StringBuilder prefix,
>       final int snapshotId) {
>     super.dumpTreeRecursively(out, prefix, snapshotId);
>     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
>     out.println();
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message