From 9a31dd4c676a15f99d6a9675c34156d042078f08 Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Fri, 1 Feb 2019 14:34:39 +0000 Subject: [PATCH] HADOOP-16079. Token.toString faulting if any token listed can't load. Contributed by Steve Loughran. (cherry picked from commit 7f46d13dac8cf85b094f41b3dd68e02c69e5afbc) --- .../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 3a981a9ae3f..96ee2018c30 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 @@ -156,7 +156,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);