HBASE-15976 RegionServerMetricsWrapperRunnable will be failure when disable blockcache. - Addendum
This commit is contained in:
parent
394e7224a9
commit
432868b038
|
@ -362,6 +362,9 @@ class MetricsRegionServerWrapperImpl
|
|||
|
||||
@Override
|
||||
public long getBlockCacheFailedInsertions() {
|
||||
if (this.cacheStats == null) {
|
||||
return 0;
|
||||
}
|
||||
return this.cacheStats.getFailedInserts();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue