hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-19388 - Incorrect value is being set for Compaction Pressure in RegionLoadStats object inside HRegion class
Date Thu, 30 Nov 2017 16:47:37 GMT
Repository: hbase
Updated Branches:
  refs/heads/master 6a6409a30 -> e0dd26de8


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/e0dd26de
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/e0dd26de
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/e0dd26de

Branch: refs/heads/master
Commit: e0dd26de8e75a14e2332827e1c092a24f08f640d
Parents: 6a6409a
Author: Harshal Deepakkumar Jain <harshal.jain@hjain-wsl.internal.salesforce.com>
Authored: Thu Nov 30 18:08:01 2017 +0530
Committer: tedyu <yuzhihong@gmail.com>
Committed: Thu Nov 30 08:47:23 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/e0dd26de/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 e5e0729..364c32a 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
@@ -7189,8 +7189,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