Skip to content

Commit 010c58c

Browse files
author
avarredd
committed
Changes to only catch IllegalArgumentException
1 parent 03afebc commit 010c58c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenSecretManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ private void removeExpiredToken() throws IOException {
860860
expiredTokens.add(entry.getKey());
861861
try {
862862
removeTokenForOwnerStats(entry.getKey());
863-
} catch (Exception e) {
863+
} catch (IllegalArgumentException e) {
864864
LOG.warn("Ignoring the exception in removeTokenForOwnerStats to remove expired " +
865865
"delegation tokens from cache and proceeding to remove", e);
866866
}

0 commit comments

Comments
 (0)