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:48:38 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-2 e20a7574d -> 49eaa7a8f


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

Branch: refs/heads/branch-2
Commit: 49eaa7a8f9a613de610863c181f9af5dc22ee538
Parents: e20a757
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:48:27 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/49eaa7a8/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