You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "dragon (JIRA)" <ji...@apache.org> on 2016/03/15 09:15:35 UTC

[jira] [Created] (HDFS-9992) CLONE - Erasure Coding: INodeFile.dumpTreeRecursively() supports to print striped blocks

dragon created HDFS-9992:
----------------------------

             Summary: CLONE - Erasure Coding: INodeFile.dumpTreeRecursively() supports to print striped blocks
                 Key: HDFS-9992
                 URL: https://issues.apache.org/jira/browse/HDFS-9992
             Project: Hadoop HDFS
          Issue Type: Sub-task
            Reporter: dragon
            Assignee: Takuya Fukudome
             Fix For: HDFS-7285


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)