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:
parent
6a6409a30a
commit
e0dd26de8e
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue