HBASE-13834 Evict count not properly passed to HeapMemoryTuner. (Abhilash)
This commit is contained in:
parent
fef6d7f48c
commit
c1d970b04d
|
@ -264,10 +264,11 @@ public class HeapMemoryManager {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void tune() {
|
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.setBlockedFlushCount(blockedFlushCount.getAndSet(0));
|
||||||
tunerContext.setUnblockedFlushCount(unblockedFlushCount.getAndSet(0));
|
tunerContext.setUnblockedFlushCount(unblockedFlushCount.getAndSet(0));
|
||||||
tunerContext.setEvictCount(evictCount);
|
|
||||||
tunerContext.setCurBlockCacheSize(blockCachePercent);
|
tunerContext.setCurBlockCacheSize(blockCachePercent);
|
||||||
tunerContext.setCurMemStoreSize(globalMemStorePercent);
|
tunerContext.setCurMemStoreSize(globalMemStorePercent);
|
||||||
TunerResult result = null;
|
TunerResult result = null;
|
||||||
|
|
Loading…
Reference in New Issue