Skip to content

Commit

Permalink
HBASE-23585 MetricsRegionServerWrapperImpl.getL1CacheHitCount always …
Browse files Browse the repository at this point in the history
…returns 200 (apache#945)

Signed-off-by: Jan Hentschel <janh@apache.org>
Signed-off-by: stack <stack@apache.org>
  • Loading branch information
ZhaoBQ authored and saintstack committed Jan 3, 2020
1 parent aaa2266 commit 3a4f389
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,10 @@ public long getBlockCacheFailedInsertions() {

@Override
public long getL1CacheHitCount() {
return 200;
if (this.l1Stats == null) {
return 0;
}
return this.l1Stats.getHitCount();
}

@Override
Expand Down

0 comments on commit 3a4f389

Please sign in to comment.