HBASE-21777 Only log compaction pressure throughput when changed or traced (addendum)
Fix the findbugs warning
This commit is contained in:
parent
df30c4e44f
commit
e4ab715901
|
@ -100,7 +100,7 @@ public class PressureAwareCompactionThroughputController extends PressureAwareTh
|
||||||
* compactionPressure;
|
* compactionPressure;
|
||||||
}
|
}
|
||||||
if (LOG.isDebugEnabled()) {
|
if (LOG.isDebugEnabled()) {
|
||||||
if (maxThroughputToSet != getMaxThroughput()) {
|
if (Math.abs(maxThroughputToSet - getMaxThroughput()) < .0000001) {
|
||||||
LOG.debug("CompactionPressure is " + compactionPressure + ", tune throughput to "
|
LOG.debug("CompactionPressure is " + compactionPressure + ", tune throughput to "
|
||||||
+ throughputDesc(maxThroughputToSet));
|
+ throughputDesc(maxThroughputToSet));
|
||||||
} else if (LOG.isTraceEnabled()) {
|
} else if (LOG.isTraceEnabled()) {
|
||||||
|
|
Loading…
Reference in New Issue