Skip to content

Commit 8b5fe81

Browse files
briaugenreichbbeaudreault
authored andcommitted
HBASE-27494: Fix missing meta cache dropping exception metrics (#4902)
Signed-off-by: Bryan Beaudreault <[email protected]>
1 parent 376f7b7 commit 8b5fe81

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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)