Details
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
Attachments
Issue Links
- is related to
-
HDFS-5866 '-maxSize' and '-step' option fail in OfflineImageViewer
- Closed