hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anoopsamj...@apache.org
Subject hbase git commit: HBASE-13834 Evict count not properly passed to HeapMemoryTuner. (Abhilash)
Date Sat, 06 Jun 2015 02:42:50 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1 ccdb26370 -> a18397e0e


HBASE-13834 Evict count not properly passed to HeapMemoryTuner. (Abhilash)


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

Branch: refs/heads/branch-1
Commit: a18397e0ee40cb0a76f03537e5e856d45c8a6bea
Parents: ccdb263
Author: anoopsjohn <anoopsamjohn@gmail.com>
Authored: Sat Jun 6 08:07:45 2015 +0530
Committer: anoopsjohn <anoopsamjohn@gmail.com>
Committed: Sat Jun 6 08:10:54 2015 +0530

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/regionserver/HeapMemoryManager.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/a18397e0/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HeapMemoryManager.java
----------------------------------------------------------------------
diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HeapMemoryManager.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HeapMemoryManager.java
index b435df3..37dc16c 100644
--- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HeapMemoryManager.java
+++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HeapMemoryManager.java
@@ -265,10 +265,11 @@ public class HeapMemoryManager {
     }
 
     private void tune() {
-      evictCount = blockCache.getStats().getEvictedCount() - evictCount;
+      long curEvictCount = blockCache.getStats().getEvictedCount();
+      tunerContext.setEvictCount(curEvictCount - evictCount);
+      evictCount = curEvictCount;
       tunerContext.setBlockedFlushCount(blockedFlushCount.getAndSet(0));
       tunerContext.setUnblockedFlushCount(unblockedFlushCount.getAndSet(0));
-      tunerContext.setEvictCount(evictCount);
       tunerContext.setCurBlockCacheSize(blockCachePercent);
       tunerContext.setCurMemStoreSize(globalMemStorePercent);
       TunerResult result = null;


Mime
View raw message