HBASE-21777 Only log compaction pressure throughput when changed or traced
This commit is contained in:
parent
13da268169
commit
fbd53bfefb
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue