You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by bi...@apache.org on 2021/07/15 01:55:15 UTC

[hbase] branch branch-2.3 updated: HBASE-26086 TestHRegionReplayEvents do not pass in branch-2 and throws NullPointerException (#3480)

This is an automated email from the ASF dual-hosted git repository.

binlijin pushed a commit to branch branch-2.3
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2.3 by this push:
     new 61c865f  HBASE-26086 TestHRegionReplayEvents do not pass in branch-2 and throws NullPointerException (#3480)
61c865f is described below

commit 61c865f86e6c8c1e328ac5f2dda351fe1eac45b8
Author: binlijin <bi...@gmail.com>
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 <zh...@apache.org>
    Signed-off-by: Anoop Sam John <an...@apache.org>
    Signed-off-by: Reid Chan <re...@apache.org>
---
 .../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 040a78a..a8bd751 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
@@ -7672,7 +7672,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);
     }
   }