You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by li...@apache.org on 2019/05/08 17:02:25 UTC
[hbase] branch branch-2 updated: HBASE-21777 Only log compaction
pressure throughput when changed or traced (addendum)
This is an automated email from the ASF dual-hosted git repository.
liyu pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new 07c71d6 HBASE-21777 Only log compaction pressure throughput when changed or traced (addendum)
07c71d6 is described below
commit 07c71d630cd293ab55ac85e9bfa06033598134c4
Author: Yu Li <li...@apache.org>
AuthorDate: Thu May 9 00:59:10 2019 +0800
HBASE-21777 Only log compaction pressure throughput when changed or traced (addendum)
Fix the findbugs warning
---
.../throttle/PressureAwareCompactionThroughputController.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/throttle/PressureAwareCompactionThroughputController.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/throttle/PressureAwareCompactionThroughputController.java
index 63aa646..740152d 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/throttle/PressureAwareCompactionThroughputController.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/throttle/PressureAwareCompactionThroughputController.java
@@ -100,7 +100,7 @@ public class PressureAwareCompactionThroughputController extends PressureAwareTh
* 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()) {