HBASE-23585 MetricsRegionServerWrapperImpl.getL1CacheHitCount always returns 200 (#945)

Signed-off-by: Jan Hentschel <janh@apache.org>
Signed-off-by: stack <stack@apache.org>
This commit is contained in:
Baiqiang Zhao 2020-01-03 23:04:57 +08:00 committed by Michael Stack
parent 19b35d2b19
commit 6b940ae986
1 changed files with 4 additions and 1 deletions

View File

@ -343,7 +343,10 @@ class MetricsRegionServerWrapperImpl
@Override
public long getL1CacheHitCount() {
return 200;
if (this.l1Stats == null) {
return 0;
}
return this.l1Stats.getHitCount();
}
@Override