소스 검색

HADOOP-16079. Token.toString faulting if any token listed can't load.

Contributed by Steve Loughran.

(cherry picked from commit 7f46d13dac8cf85b094f41b3dd68e02c69e5afbc)
Steve Loughran 6 년 전
부모
커밋
3b47371fe2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/Token.java

+ 1 - 1
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/Token.java

@@ -157,7 +157,7 @@ public class Token<T extends TokenIdentifier> 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);