Skip to content

Commit

Permalink
HBASE-27807 PressureAwareCompactionThroughputController#tune log the …
Browse files Browse the repository at this point in the history
…opposite of the actual scenario (apache#5198)

Signed-off-by: Duo Zhang <[email protected]>
(cherry picked from commit 95f83cb)
  • Loading branch information
haosenchen authored and Apache9 committed Apr 23, 2023
1 parent 81671f2 commit 0e224b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private void tune(double compactionPressure) {
+ (maxThroughputUpperBound - maxThroughputLowerBound) * compactionPressure;
}
if (LOG.isDebugEnabled()) {
if (Math.abs(maxThroughputToSet - getMaxThroughput()) < .0000001) {
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 0e224b1

Please sign in to comment.