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

This commit is contained in:
anoopsjohn 2015-06-06 08:07:45 +05:30
parent fef6d7f48c
commit c1d970b04d
1 changed files with 3 additions and 2 deletions

View File

@ -264,10 +264,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;