HADOOP-18715. Add debug log for getting details of tokenKindMap (#5608). Contributed by Pralabh Kumar.

Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
This commit is contained in:
Pralabh Kumar 2023-04-29 17:28:49 +05:30 committed by Ayush Saxena
parent 408c5c53b1
commit 6b6bd82bf0
No known key found for this signature in database
GPG Key ID: D09AE71061AB564D
1 changed files with 1 additions and 0 deletions

View File

@ -136,6 +136,7 @@ public class Token<T extends TokenIdentifier> implements Writable {
while (tokenIdentifiers.hasNext()) {
try {
TokenIdentifier id = tokenIdentifiers.next();
LOG.debug("Added {}:{} into tokenKindMap", id.getKind(), id.getClass());
tokenKindMap.put(id.getKind(), id.getClass());
} catch (ServiceConfigurationError | LinkageError e) {
// failure to load a token implementation