HBASE-19388 - Incorrect value is being set for Compaction Pressure in RegionLoadStats object inside HRegion class

Signed-off-by: tedyu <yuzhihong@gmail.com>
This commit is contained in:
Harshal Deepakkumar Jain 2017-11-30 18:08:01 +05:30 committed by tedyu
parent 6a6409a30a
commit e0dd26de8e
1 changed files with 2 additions and 2 deletions

View File

@ -7189,8 +7189,8 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver, Regi
stats.setHeapOccupancy((int)(occupancy * 100)); stats.setHeapOccupancy((int)(occupancy * 100));
} }
} }
stats.setCompactionPressure((int)rsServices.getCompactionPressure()*100 > 100 ? 100 : stats.setCompactionPressure((int) (rsServices.getCompactionPressure() * 100 > 100 ? 100
(int)rsServices.getCompactionPressure()*100); : rsServices.getCompactionPressure() * 100));
return stats.build(); return stats.build();
} }