[
https://issues.apache.org/jira/browse/HDFS-7872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jing Zhao resolved HDFS-7872.
-----------------------------
Resolution: Fixed
Fix Version/s: HDFS-7285
Hadoop Flags: Reviewed
I've committed this to the feature branch.
> 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)