From 6b6bd82bf05c58afe65890d6e00d268623ae7814 Mon Sep 17 00:00:00 2001 From: Pralabh Kumar Date: Sat, 29 Apr 2023 17:28:49 +0530 Subject: [PATCH] HADOOP-18715. Add debug log for getting details of tokenKindMap (#5608). Contributed by Pralabh Kumar. Signed-off-by: Ayush Saxena --- .../src/main/java/org/apache/hadoop/security/token/Token.java | 1 + 1 file changed, 1 insertion(+) 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 33314060a5..3ea32bc41e 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 @@ -136,6 +136,7 @@ public byte[] getIdentifier() { 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