Details
-
Sub-task
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
None
Description
Currently AbstractDelegationTokenSecretManager$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 expired"); } 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 issues.
Create this jira as a request to add that part.
Attachments
Attachments
Issue Links
- breaks
-
HADOOP-13813 TestDelegationTokenFetcher#testDelegationTokenWithoutRenewer is failing
- Resolved
-
HADOOP-13815 TestKMS#testDelegationTokensOpsSimple and TestKMS#testDelegationTokensOpsKerberized Fails in Trunk
- Resolved
-
YARN-5875 TestTokenClientRMService#testTokenRenewalWrongUser fails
- Resolved
-
YARN-5884 TestTokenClientRMService#testTokenRenewalWrongUser Fails after HADOOP-13720
- Resolved