Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.0.0-beta-1
Description
The RegionSizeCalculator calculates region byte size using the following method
private static final long MEGABYTE = 1024L * 1024L; long regionSizeBytes = ((long) regionLoad.getStoreFileSize().get(Size.Unit.MEGABYTE)) * MEGABYTE;
However, this method will lose accuracy. For example, the result of
((long) new Size(1, Size.Unit.BYTE).get(Size.Unit.MEGABYTE)) * MEGABYTE
is 0. This will result in a TableInputSplit with a length of 0, but in fact this TableInputSplit has a small amount of data.
This TableInputSplit will be ignored if we enable spark.hadoopRDD.ignoreEmptySplits.
Attachments
Issue Links
- is related to
-
HBASE-28354 RegionSizeCalculator throws NPE when regions are in transition
- Resolved
- links to