This is an automated email from the ASF dual-hosted git repository.
binlijin pushed a commit to branch branch-2.4
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2.4 by this push:
new 1d0cfa9 HBASE-26086 TestHRegionReplayEvents do not pass in branch-2
and throws NullPointerException (#3480)
1d0cfa9 is described below
commit 1d0cfa9ed44d3bc33a5f30eb02673c792506433d
Author: binlijin <[email protected]>
AuthorDate: Wed Jul 14 11:37:25 2021 +0800
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]>
---
.../src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
index 2e6e044..d304fa3 100644
---
a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
+++
b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java
@@ -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);
}
}