Skip to content
Permalink
Browse files
HBASE-21777 Only log compaction pressure throughput when changed or t…
…raced

Signed-off-by: Yu Li <liyu@apache.org>
Signed-off-by: Andrew Purtell <apurtell@apache.org>
  • Loading branch information
Tak Lon (Stephen) Wu authored and carp84 committed May 7, 2019
1 parent 2005122 commit b5b89f7c742c3c60c307c49866f207e2d219e3a3
Showing 1 changed file with 8 additions and 5 deletions.
@@ -99,11 +99,14 @@ private void tune(double compactionPressure) {
maxThroughputLowerBound + (maxThroughputUpperBound - maxThroughputLowerBound)
* compactionPressure;
}
if (LOG.isTraceEnabled()) {
// TODO: FIX!!! Don't log unless some activity or a change in config. Making TRACE
// in the meantime.
LOG.trace("CompactionPressure is " + compactionPressure + ", tune throughput to "
+ throughputDesc(maxThroughputToSet));
if (LOG.isDebugEnabled()) {
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);
}

0 comments on commit b5b89f7

Please sign in to comment.