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

Contributed by Steve Loughran.

(cherry picked from commit 7f46d13dac)
This commit is contained in:
Steve Loughran 2019-02-01 14:34:39 +00:00
parent 3b03ff6fdd
commit 9a31dd4c67
No known key found for this signature in database
GPG Key ID: D22CF846DBB162A0
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ public class Token<T extends TokenIdentifier> implements Writable {
try { try {
TokenIdentifier id = tokenIdentifiers.next(); TokenIdentifier id = tokenIdentifiers.next();
tokenKindMap.put(id.getKind(), id.getClass()); tokenKindMap.put(id.getKind(), id.getClass());
} catch (ServiceConfigurationError e) { } catch (ServiceConfigurationError | LinkageError e) {
// failure to load a token implementation // failure to load a token implementation
// log at debug and continue. // log at debug and continue.
LOG.debug("Failed to load token identifier implementation", e); LOG.debug("Failed to load token identifier implementation", e);