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:
haosen chen 2023-04-23 23:20:47 +08:00 committed by GitHub
parent e86f930894
commit 95f83cb8e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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()) {