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 b83fec4 commit 1d0cfa9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8290,7 +8290,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 1d0cfa9

Please sign in to comment.