hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [3/3] hbase git commit: HBASE-19388 - Incorrect value is being set for Compaction Pressure in RegionLoadStats object inside HRegion class
Date Thu, 30 Nov 2017 23:13:22 GMT
HBASE-19388 - Incorrect value is being set for Compaction Pressure in RegionLoadStats object
inside HRegion class

Signed-off-by: tedyu <yuzhihong@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/d0c99f1d
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/d0c99f1d
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/d0c99f1d

Branch: refs/heads/branch-1.2
Commit: d0c99f1dd88266a155798f1b688fdd2bf7b9c2ba
Parents: 9ab637c
Author: Harshal Deepakkumar Jain <harshal.jain@hjain-wsl.internal.salesforce.com>
Authored: Thu Nov 30 18:08:01 2017 +0530
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Thu Nov 30 15:07:57 2017 -0800

----------------------------------------------------------------------
 .../main/java/org/apache/hadoop/hbase/regionserver/HRegion.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/d0c99f1d/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
index 30202a0..696f8c3 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
@@ -7008,8 +7008,8 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver,
Regi
         stats.setHeapOccupancy((int)(occupancy * 100));
       }
     }
-    stats.setCompactionPressure((int)rsServices.getCompactionPressure()*100 > 100 ? 100
:
-                (int)rsServices.getCompactionPressure()*100);
+    stats.setCompactionPressure((int) (rsServices.getCompactionPressure() * 100 > 100
? 100
+        : rsServices.getCompactionPressure() * 100));
     return stats.build();
   }
 


Mime
View raw message