Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7285 Erasure Coding Support inside HDFS
  3. HDFS-7872

Erasure Coding: INodeFile.dumpTreeRecursively() supports to print striped blocks

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • HDFS-7285
    • None
    • None
    • Reviewed

    Description

      We need to let dumpTreeRecursively be able to print striped blocks (or maybe just the first striped block).

        @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();
        }
      

      Attachments

        1. HDFS-7872.1.patch
          1 kB
          Takuya Fukudome
        2. HDFS-7872.2.patch
          0.9 kB
          Takuya Fukudome

        Activity

          People

            tfukudom Takuya Fukudome
            tfukudom Takuya Fukudome
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: