Yongjun Zhang created HADOOP-13720:

             Summary: Add more info to "token ... is expired" message
                 Key: HADOOP-13720
                 URL: https://issues.apache.org/jira/browse/HADOOP-13720
             Project: Hadoop Common
          Issue Type: Bug
          Components: common, security
            Reporter: Yongjun Zhang

Currently AbstractDelegationTokenSecretM anager$checkToken does

  protected DelegationTokenInformation checkToken(TokenIdent identifier)
      throws InvalidToken {
    assert Thread.holdsLock(this);
    DelegationTokenInformation info = getTokenInfo(identifier);
    if (info == null) {
      throw new InvalidToken("token (" + identifier.toString()
          + ") can't be found in cache");
    if (info.getRenewDate() < Time.now()) {
      throw new InvalidToken("token (" + identifier.toString() + ") is 
    return info;

When a token is expried, we throw the above exception without printing out the 
{{info.getRenewDate()}} in the message. If we print it out, we could know for 
how long the token has not been renewed. This will help us investigate certain 

Create this jira as a request to add that part.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to