You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Ayush Saxena (Jira)" <ji...@apache.org> on 2023/04/29 12:07:00 UTC

[jira] [Resolved] (HADOOP-18715) Add debug log for getting details of tokenKindMap

     [ https://issues.apache.org/jira/browse/HADOOP-18715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ayush Saxena resolved HADOOP-18715.
-----------------------------------
    Fix Version/s: 3.4.0
                   3.3.9
     Hadoop Flags: Reviewed
       Resolution: Fixed

> Add debug log for getting details of tokenKindMap
> -------------------------------------------------
>
>                 Key: HADOOP-18715
>                 URL: https://issues.apache.org/jira/browse/HADOOP-18715
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 3.3.4
>            Reporter: Pralabh Kumar
>            Assignee: Pralabh Kumar
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 3.4.0, 3.3.9
>
>
> Currently there is no way to know what is store in tokenKindMap. There are also no debug logs . I think we should add gettokenKindMap method , so that caller can see the content of the tokenKindMap . It will really help to debug . 
> {code:java}
> while (tokenIdentifiers.hasNext()) {
>           try {
>             TokenIdentifier id = tokenIdentifiers.next();
>             *tokenKindMap.put(id.getKind(), id.getClass());*
>           } catch (ServiceConfigurationError | LinkageError e) {
>             // failure to load a token implementation
>             // log at debug and continue.
>             LOG.debug("Failed to load token identifier implementation", e);
>           }
>         }
>       }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org