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:
haosen chen 2023-04-23 23:20:47 +08:00 committed by Duo Zhang
parent 4ee389adc4
commit 2980ef4b4b
1 changed files with 1 additions and 1 deletions

View File

@ -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()) {