You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by st...@apache.org on 2019/02/01 14:32:35 UTC

[hadoop] branch trunk updated: HADOOP-16079. Token.toString faulting if any token listed can't load.

This is an automated email from the ASF dual-hosted git repository.

stevel pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 7f46d13  HADOOP-16079. Token.toString faulting if any token listed can't load.
7f46d13 is described below

commit 7f46d13dac8cf85b094f41b3dd68e02c69e5afbc
Author: Steve Loughran <st...@apache.org>
AuthorDate: Fri Feb 1 14:31:47 2019 +0000

    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 95e00b5..edc1e1d 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<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);


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org