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