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:34:54 UTC

[hadoop] branch branch-3.2 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 branch-3.2
in repository https://gitbox.apache.org/repos/asf/hadoop.git


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

commit 3b47371fe2ceb1a899c40d6135f9250ce15983a0
Author: Steve Loughran <st...@apache.org>
AuthorDate: Fri Feb 1 14:34:11 2019 +0000

    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 22392be..f02e9d6 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