hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dragon (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-9992) CLONE - Erasure Coding: INodeFile.dumpTreeRecursively() supports to print striped blocks
Date Tue, 15 Mar 2016 08:15:35 GMT
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)

Mime
View raw message