Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-5863 Improve OfflineImageViewer
  3. HDFS-5956

A file size is multiplied by the replication factor in 'hdfs oiv -p FileDistribution' option

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.0, 3.0.0-alpha1
    • 2.4.0
    • tools
    • Reviewed

    Description

      In FileDistributionCalculator.java,

              long fileSize = 0;
              for (BlockProto b : f.getBlocksList()) {
                fileSize += b.getNumBytes() * f.getReplication();
              }
              maxFileSize = Math.max(fileSize, maxFileSize);
              totalSpace += fileSize;
      

      should be

              long fileSize = 0;
              for (BlockProto b : f.getBlocksList()) {
                fileSize += b.getNumBytes();
              }
              maxFileSize = Math.max(fileSize, maxFileSize);
              totalSpace += fileSize * f.getReplication();
      

      Attachments

        1. HDFS-5956.3.patch
          4 kB
          Akira Ajisaka
        2. HDFS-5956.2.patch
          5 kB
          Akira Ajisaka
        3. HDFS-5956.patch
          4 kB
          Akira Ajisaka

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            aajisaka Akira Ajisaka
            aajisaka Akira Ajisaka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment