HADOOP-16079. Token.toString faulting if any token listed can't load.
Contributed by Steve Loughran.
This commit is contained in:
parent
13aa939224
commit
7f46d13dac
@ -157,7 +157,7 @@ public byte[] getIdentifier() {
|
|||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user