From 7f46d13dac8cf85b094f41b3dd68e02c69e5afbc Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Fri, 1 Feb 2019 14:31:47 +0000 Subject: [PATCH] HADOOP-16079. Token.toString faulting if any token listed can't load. Contributed by Steve Loughran. --- .../src/main/java/org/apache/hadoop/security/token/Token.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/Token.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/Token.java index 95e00b5b723..edc1e1d5aa2 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/Token.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/Token.java @@ -157,7 +157,7 @@ public class Token implements Writable { try { TokenIdentifier id = tokenIdentifiers.next(); tokenKindMap.put(id.getKind(), id.getClass()); - } catch (ServiceConfigurationError e) { + } catch (ServiceConfigurationError | LinkageError e) { // failure to load a token implementation // log at debug and continue. LOG.debug("Failed to load token identifier implementation", e);