From e4ab71590142c8481fbedf15450504a5f698cbab Mon Sep 17 00:00:00 2001 From: Yu Li Date: Thu, 9 May 2019 00:59:10 +0800 Subject: [PATCH] HBASE-21777 Only log compaction pressure throughput when changed or traced (addendum) Fix the findbugs warning --- .../throttle/PressureAwareCompactionThroughputController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/throttle/PressureAwareCompactionThroughputController.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/throttle/PressureAwareCompactionThroughputController.java index 7df07bb27db..2dc5817a21a 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/throttle/PressureAwareCompactionThroughputController.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/throttle/PressureAwareCompactionThroughputController.java @@ -100,7 +100,7 @@ public class PressureAwareCompactionThroughputController extends PressureAwareTh * compactionPressure; } if (LOG.isDebugEnabled()) { - if (maxThroughputToSet != getMaxThroughput()) { + if (Math.abs(maxThroughputToSet - getMaxThroughput()) < .0000001) { LOG.debug("CompactionPressure is " + compactionPressure + ", tune throughput to " + throughputDesc(maxThroughputToSet)); } else if (LOG.isTraceEnabled()) {