hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhang...@apache.org
Subject [01/42] hbase git commit: HBASE-19561 maxCacheSize in CacheEvictionStats can't be accumulated repeatedly When dealing with each region [Forced Update!]
Date Thu, 21 Dec 2017 13:24:50 GMT
Repository: hbase
Updated Branches:
  refs/heads/HBASE-19397 90d77b557 -> 540a8a261 (forced update)


HBASE-19561 maxCacheSize in CacheEvictionStats can't be accumulated repeatedly When dealing
with each region

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

Branch: refs/heads/HBASE-19397
Commit: 55fefd4b5a43ab7221a08a1410a113b9c41bbd60
Parents: cae5c27
Author: Guangxu Cheng <guangxucheng@gmail.com>
Authored: Wed Dec 20 11:59:06 2017 +0800
Committer: tedyu <yuzhihong@gmail.com>
Committed: Wed Dec 20 07:05:05 2017 -0800

----------------------------------------------------------------------
 .../java/org/apache/hadoop/hbase/regionserver/HRegionServer.java    | 1 -
 .../java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java    | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/55fefd4b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
index e2d6ba0..3a7680a 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java
@@ -3632,7 +3632,6 @@ public class HRegionServer extends HasThread implements
 
     return CacheEvictionStats.builder()
         .withEvictedBlocks(evictedBlocks)
-        .withMaxCacheSize(blockCache.getMaxSize())
         .build();
   }
 

http://git-wip-us.apache.org/repos/asf/hbase/blob/55fefd4b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java
index a77856a..1bcb70f 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/RSRpcServices.java
@@ -3462,6 +3462,7 @@ public class RSRpcServices implements HBaseRPCErrorHandler,
         stats.addException(region.getRegionInfo().getRegionName(), e);
       }
     }
+    stats.withMaxCacheSize(regionServer.getCacheConfig().getBlockCache().getMaxSize());
     return builder.setStats(ProtobufUtil.toCacheEvictionStats(stats.build())).build();
   }
 }


Mime
View raw message