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 (addendum)

Fix the findbugs warning
  • Loading branch information
carp84 committed May 8, 2019
1 parent 9bb57b8 commit 07c71d6
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -100,7 +100,7 @@ private void tune(double compactionPressure) {
* compactionPressure;
}
if (LOG.isDebugEnabled()) {
if (maxThroughputToSet != getMaxThroughput()) {
if (Math.abs(maxThroughputToSet - getMaxThroughput()) < .0000001) {
LOG.debug("CompactionPressure is " + compactionPressure + ", tune throughput to "
+ throughputDesc(maxThroughputToSet));
} else if (LOG.isTraceEnabled()) {
Expand Down

0 comments on commit 07c71d6

Please sign in to comment.