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 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); } }