Skip to content

Commit 0e224b1

Browse files
haosenchenApache9
authored andcommitted
HBASE-27807 PressureAwareCompactionThroughputController#tune log the opposite of the actual scenario (#5198)
Signed-off-by: Duo Zhang <[email protected]> (cherry picked from commit 95f83cb)
1 parent 81671f2 commit 0e224b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/throttle/PressureAwareCompactionThroughputController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private void tune(double compactionPressure) {
9999
+ (maxThroughputUpperBound - maxThroughputLowerBound) * compactionPressure;
100100
}
101101
if (LOG.isDebugEnabled()) {
102-
if (Math.abs(maxThroughputToSet - getMaxThroughput()) < .0000001) {
102+
if (Math.abs(maxThroughputToSet - getMaxThroughput()) >= .0000001) {
103103
LOG.debug("CompactionPressure is " + compactionPressure + ", tune throughput to "
104104
+ throughputDesc(maxThroughputToSet));
105105
} else if (LOG.isTraceEnabled()) {

0 commit comments

Comments
 (0)