Skip to content

Commit

Permalink
HBASE-26086 TestHRegionReplayEvents do not pass in branch-2 and throw…
Browse files Browse the repository at this point in the history
…s NullPointerException (#3480)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
Signed-off-by: Anoop Sam John <anoopsamjohn@apache.org>
Signed-off-by: Reid Chan <reidchan@apache.org>
  • Loading branch information
binlijin committed Jul 15, 2021
1 parent 3f6b6e1 commit 61c865f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7672,7 +7672,7 @@ void metricsUpdateForGet(List<Cell> results, long before) {
if (this.metricsRegion != null) {
this.metricsRegion.updateGet(EnvironmentEdgeManager.currentTime() - before);
}
if (rsServices != null) {
if (rsServices != null && this.rsServices.getMetrics() != null) {
rsServices.getMetrics().updateReadQueryMeter(getTableDescriptor().getTableName(), 1);
}
}
Expand Down

0 comments on commit 61c865f

Please sign in to comment.