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

Signed-off-by: tedyu <yuzhihong@gmail.com>
This commit is contained in:
Guangxu Cheng 2017-12-20 11:59:06 +08:00 committed by tedyu
parent cae5c2706b
commit 55fefd4b5a
2 changed files with 1 additions and 1 deletions

View File

@ -3632,7 +3632,6 @@ public class HRegionServer extends HasThread implements
return CacheEvictionStats.builder()
.withEvictedBlocks(evictedBlocks)
.withMaxCacheSize(blockCache.getMaxSize())
.build();
}

View File

@ -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();
}
}