Skip to content

Commit 751b6b9

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

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
@@ -908,6 +908,10 @@ private void cleanServerCache(ServerName server, Throwable regionException) {
908908
if (ClientExceptionsUtil.isMetaClearingException(regionException)) {
909909
// We want to make sure to clear the cache in case there were location-related exceptions.
910910
// We don't to clear the cache for every possible exception that comes through, however.
911+
MetricsConnection metrics = asyncProcess.connection.getConnectionMetrics();
912+
if (metrics != null) {
913+
metrics.incrCacheDroppingExceptions(regionException);
914+
}
911915
asyncProcess.connection.clearCaches(server);
912916
}
913917
}

0 commit comments

Comments
 (0)