HBASE-15976 RegionServerMetricsWrapperRunnable will be failure when disable blockcache. - Addendum

This commit is contained in:
Jingcheng Du 2016-06-29 16:37:23 +08:00
parent 96a24aede7
commit b93c08d358
1 changed files with 3 additions and 0 deletions

View File

@ -317,6 +317,9 @@ class MetricsRegionServerWrapperImpl
@Override
public long getBlockCacheFailedInsertions() {
if (this.cacheStats == null) {
return 0;
}
return this.cacheStats.getFailedInserts();
}