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