Skip to content

Commit 6b940ae

Browse files
ZhaoBQsaintstack
authored andcommitted
HBASE-23585 MetricsRegionServerWrapperImpl.getL1CacheHitCount always returns 200 (#945)
Signed-off-by: Jan Hentschel <janh@apache.org> Signed-off-by: stack <stack@apache.org>
1 parent 19b35d2 commit 6b940ae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/MetricsRegionServerWrapperImpl.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,10 @@ public long getBlockCacheFailedInsertions() {
343343

344344
@Override
345345
public long getL1CacheHitCount() {
346-
return 200;
346+
if (this.l1Stats == null) {
347+
return 0;
348+
}
349+
return this.l1Stats.getHitCount();
347350
}
348351

349352
@Override

0 commit comments

Comments
 (0)