Skip to content

Commit 1d0cfa9

Browse files
committed
HBASE-26086 TestHRegionReplayEvents do not pass in branch-2 and throws NullPointerException (#3480)
Signed-off-by: Duo Zhang <[email protected]> Signed-off-by: Anoop Sam John <[email protected]> Signed-off-by: Reid Chan <[email protected]>
1 parent b83fec4 commit 1d0cfa9

File tree

1 file changed

+1
-1
lines changed
  • hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8290,7 +8290,7 @@ void metricsUpdateForGet(List<Cell> results, long before) {
82908290
if (this.metricsRegion != null) {
82918291
this.metricsRegion.updateGet(EnvironmentEdgeManager.currentTime() - before);
82928292
}
8293-
if (rsServices != null) {
8293+
if (rsServices != null && this.rsServices.getMetrics() != null) {
82948294
rsServices.getMetrics().updateReadQueryMeter(getTableDescriptor().getTableName(), 1);
82958295
}
82968296
}

0 commit comments

Comments
 (0)