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]>
  • Loading branch information
haosenchen authored Apr 23, 2023
1 parent e86f930 commit 95f83cb
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 95f83cb

Please sign in to comment.