HBASE-27807 PressureAwareCompactionThroughputController#tune log the opposite of the actual scenario (#5198)
Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
parent
e86f930894
commit
95f83cb8e2
|
@ -99,7 +99,7 @@ public class PressureAwareCompactionThroughputController extends PressureAwareTh
|
||||||
+ (maxThroughputUpperBound - maxThroughputLowerBound) * compactionPressure;
|
+ (maxThroughputUpperBound - maxThroughputLowerBound) * compactionPressure;
|
||||||
}
|
}
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
if (Math.abs(maxThroughputToSet - getMaxThroughput()) < .0000001) {
|
if (Math.abs(maxThroughputToSet - getMaxThroughput()) >= .0000001) {
|
||||||
LOG.debug("CompactionPressure is " + compactionPressure + ", tune throughput to "
|
LOG.debug("CompactionPressure is " + compactionPressure + ", tune throughput to "
|
||||||
+ throughputDesc(maxThroughputToSet));
|
+ throughputDesc(maxThroughputToSet));
|
||||||
} else if (LOG.isTraceEnabled()) {
|
} else if (LOG.isTraceEnabled()) {
|
||||||
|
|
Loading…
Reference in New Issue