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

This commit is contained in:
Jingcheng Du 2016-06-29 16:31:23 +08:00
parent 394e7224a9
commit 432868b038
1 changed files with 3 additions and 0 deletions

View File

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