Skip to content

Commit

Permalink
HBASE-21777 Only log compaction pressure throughput when changed or t…
Browse files Browse the repository at this point in the history
…raced
  • Loading branch information
Tak Lon (Stephen) Wu authored and carp84 committed May 7, 2019
1 parent 13da268 commit fbd53bf
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,13 @@ private void tune(double compactionPressure) {
* 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);
}
Expand Down

0 comments on commit fbd53bf

Please sign in to comment.