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

This commit is contained in:
Tak Lon (Stephen) Wu 2019-05-07 11:28:08 -07:00 committed by Yu Li
parent 13da268169
commit fbd53bfefb
1 changed files with 7 additions and 2 deletions

View File

@ -100,8 +100,13 @@ public class PressureAwareCompactionThroughputController extends PressureAwareTh
* compactionPressure;
}
if (LOG.isDebugEnabled()) {
LOG.debug("compactionPressure is " + compactionPressure + ", tune compaction throughput to "
+ throughputDesc(maxThroughputToSet));
if (maxThroughputToSet != getMaxThroughput()) {
LOG.debug("CompactionPressure is " + compactionPressure + ", tune throughput to "
+ throughputDesc(maxThroughputToSet));
} else if (LOG.isTraceEnabled()) {
LOG.trace("CompactionPressure is " + compactionPressure + ", keep throughput throttling to "
+ throughputDesc(maxThroughputToSet));
}
}
this.setMaxThroughput(maxThroughputToSet);
}