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:
parent
cae5c2706b
commit
55fefd4b5a
|
@ -3632,7 +3632,6 @@ public class HRegionServer extends HasThread implements
|
||||||
|
|
||||||
return CacheEvictionStats.builder()
|
return CacheEvictionStats.builder()
|
||||||
.withEvictedBlocks(evictedBlocks)
|
.withEvictedBlocks(evictedBlocks)
|
||||||
.withMaxCacheSize(blockCache.getMaxSize())
|
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3462,6 +3462,7 @@ public class RSRpcServices implements HBaseRPCErrorHandler,
|
||||||
stats.addException(region.getRegionInfo().getRegionName(), e);
|
stats.addException(region.getRegionInfo().getRegionName(), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stats.withMaxCacheSize(regionServer.getCacheConfig().getBlockCache().getMaxSize());
|
||||||
return builder.setStats(ProtobufUtil.toCacheEvictionStats(stats.build())).build();
|
return builder.setStats(ProtobufUtil.toCacheEvictionStats(stats.build())).build();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue