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
|
@Override
|
||||||
public long getBlockCacheFailedInsertions() {
|
public long getBlockCacheFailedInsertions() {
|
||||||
|
if (this.cacheStats == null) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
return this.cacheStats.getFailedInserts();
|
return this.cacheStats.getFailedInserts();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue