Skip to content

Commit 53b4b4e

Browse files
HBASE-27494: Fix missing meta cache dropping exception metrics (#4902)
Signed-off-by: Bryan Beaudreault <bbeaudreault@apache.org>
1 parent 4d29ef8 commit 53b4b4e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncRequestFutureImpl.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,10 @@ private void cleanServerCache(ServerName server, Throwable regionException) {
912912
if (ClientExceptionsUtil.isMetaClearingException(regionException)) {
913913
// We want to make sure to clear the cache in case there were location-related exceptions.
914914
// We don't to clear the cache for every possible exception that comes through, however.
915+
MetricsConnection metrics = asyncProcess.connection.getConnectionMetrics();
916+
if (metrics != null) {
917+
metrics.incrCacheDroppingExceptions(regionException);
918+
}
915919
asyncProcess.connection.clearCaches(server);
916920
}
917921
}

0 commit comments

Comments
 (0)