HDFS-11928. Segment overflow in FileDistributionCalculator. Contributed by LiXin Ge.
This commit is contained in:
parent
14f782b6b9
commit
b55a34639d
|
@ -160,8 +160,8 @@ final class FileDistributionCalculator {
|
||||||
+ StringUtils.byteDesc(((long) (i == 0 ? 0 : i - 1) * steps))
|
+ StringUtils.byteDesc(((long) (i == 0 ? 0 : i - 1) * steps))
|
||||||
+ ", "
|
+ ", "
|
||||||
+ StringUtils.byteDesc((long)
|
+ StringUtils.byteDesc((long)
|
||||||
(i == distribution.length - 1 ? maxFileSize : i * steps))
|
(i == distribution.length - 1 ? maxFileSize :
|
||||||
+ "]\t" + distribution[i]);
|
(long) i * steps)) + "]\t" + distribution[i]);
|
||||||
} else {
|
} else {
|
||||||
out.print(((long) i * steps) + "\t" + distribution[i]);
|
out.print(((long) i * steps) + "\t" + distribution[i]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue