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

Correct the condition of the if statement
  • Loading branch information
haosenchen committed Apr 22, 2023
1 parent ced4ff1 commit eae4da9
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 eae4da9

Please sign in to comment.