HBASE-26086 TestHRegionReplayEvents do not pass in branch-2 and throws 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>
This commit is contained in:
binlijin 2021-07-14 11:37:25 +08:00
parent b83fec48dc
commit 1d0cfa9ed4

View File

@ -8290,7 +8290,7 @@ public class HRegion implements HeapSize, PropagatingConfigurationObserver, Regi
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);
}
}