You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by bb...@apache.org on 2022/11/30 18:06:09 UTC

[hbase] branch branch-2.5 updated: HBASE-27494: Fix missing meta cache dropping exception metrics (#4902)

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

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


The following commit(s) were added to refs/heads/branch-2.5 by this push:
     new 8b5fe81c039 HBASE-27494: Fix missing meta cache dropping exception metrics (#4902)
8b5fe81c039 is described below

commit 8b5fe81c03952988374a3780c0ae310aa7e99c78
Author: Bri Augenreich <bb...@vt.edu>
AuthorDate: Wed Nov 30 13:03:19 2022 -0500

    HBASE-27494: Fix missing meta cache dropping exception metrics (#4902)
    
    Signed-off-by: Bryan Beaudreault <bb...@apache.org>
---
 .../java/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.java   | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.java
index a91fd5af6af..bcc7fac3209 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.java
@@ -912,6 +912,10 @@ class AsyncRequestFutureImpl<CResult> implements AsyncRequestFuture {
     if (ClientExceptionsUtil.isMetaClearingException(regionException)) {
       // We want to make sure to clear the cache in case there were location-related exceptions.
       // We don't to clear the cache for every possible exception that comes through, however.
+      MetricsConnection metrics = asyncProcess.connection.getConnectionMetrics();
+      if (metrics != null) {
+        metrics.incrCacheDroppingExceptions(regionException);
+      }
       asyncProcess.connection.clearCaches(server);
     }
   }