HBASE-21777 Only log compaction pressure throughput when changed or traced (addendum)

Fix the findbugs warning
This commit is contained in:
Yu Li 2019-05-09 00:59:10 +08:00
parent ba235c93a5
commit 12bf75bb2a
1 changed files with 1 additions and 1 deletions

View File

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