hchaverri commented on code in PR #5897: URL: https://github.com/apache/hadoop/pull/5897#discussion_r1282301050
########## hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/SQLDelegationTokenSecretManager.java: ########## @@ -153,36 +161,60 @@ protected void removeStoredToken(TokenIdent ident) throws IOException { } } + @Override + protected void removeExpiredStoredToken(TokenIdent ident) { + try { + // Ensure that the token has not been renewed in SQL by + // another secret manager + DelegationTokenInformation tokenInfo = getTokenInfoFromSQL(ident); + if (tokenInfo.getRenewDate() >= Time.now()) { + LOG.info("Token was renewed by a different router and has not been deleted: " + ident); Review Comment: Thanks. I've updated the logging format -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org