Skip to content

Commit 9322810

Browse files
author
TAK LON WU
committed
HBASE-21777 Only log compaction pressure throughput when changed or traced
1 parent 26b9e76 commit 9322810

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/throttle/PressureAwareCompactionThroughputController.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,13 @@ private void tune(double compactionPressure) {
100100
* compactionPressure;
101101
}
102102
if (LOG.isDebugEnabled()) {
103-
LOG.debug("compactionPressure is " + compactionPressure + ", tune compaction throughput to "
104-
+ throughputDesc(maxThroughputToSet));
103+
if (maxThroughputToSet != getMaxThroughput()) {
104+
LOG.debug("CompactionPressure is " + compactionPressure + ", tune throughput to "
105+
+ throughputDesc(maxThroughputToSet));
106+
} else if (LOG.isTraceEnabled()) {
107+
LOG.trace("CompactionPressure is " + compactionPressure + ", keep throughput throttling to "
108+
+ throughputDesc(maxThroughputToSet));
109+
}
105110
}
106111
this.setMaxThroughput(maxThroughputToSet);
107112
}

0 commit comments

Comments
 (0)