Suppress stacktrace of InterruptedException in CommonCacheNotifier (#11715)

When CommonCachedNotifier is being stopped while the thread is waiting on updateQueue.take(),
an InterruptedException is thrown. The stack trace from this exception gives the wrong idea that something went wrong with the shutdown.
This commit is contained in:
Kashif Faraz 2021-09-16 22:27:08 +05:30 committed by GitHub
parent 5e092ccb9b
commit 757720fae5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -140,6 +140,9 @@ public class CommonCacheNotifier
LOG.debug(callerName + ":Received responses for cache update notifications.");
}
catch (InterruptedException e) {
LOG.noStackTrace().info(e, "%s: Interrupted while handling updates for cachedUserMaps.", callerName);
}
catch (Throwable t) {
LOG.makeAlert(t, callerName + ":Error occured while handling updates for cachedUserMaps.").emit();
}