[ 
https://issues.apache.org/jira/browse/HDFS-17572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17863137#comment-17863137
 ] 

Ayush Saxena edited comment on HDFS-17572 at 7/5/24 6:49 AM:
-------------------------------------------------------------

haven't checked the test but most probably the token got expired before the 
assertion triggered, increasing the expiry time should fix most probably or 
something on similar lines


was (Author: ayushtkn):
most probably the token got expired before the assertion triggered, increasing 
the expiry time should fix most probably

> TestRouterSecurityManager#testDelegationTokens is flaky
> -------------------------------------------------------
>
>                 Key: HDFS-17572
>                 URL: https://issues.apache.org/jira/browse/HDFS-17572
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Ayush Saxena
>            Priority: Major
>
> {noformat}
> Expected: (an instance of 
> org.apache.hadoop.security.token.SecretManager$InvalidToken and exception 
> with message a string containing "Renewal request for unknown token")
>      but: exception with message a string containing "Renewal request for 
> unknown token" message was "some_renewer tried to renew an expired token 
> (token for router: HDFS_DELEGATION_TOKEN owner=router, renewer=some_renewer, 
> realUser=, issueDate=1720114742074, maxDate=1720114742174, sequenceNumber=6, 
> masterKeyId=37) max expiration date: 2024-07-04 17:39:02,174+0000 
> currentTime: 2024-07-04 17:39:02,233+0000"
> Stacktrace was: org.apache.hadoop.security.token.SecretManager$InvalidToken: 
> some_renewer tried to renew an expired token (token for router: 
> HDFS_DELEGATION_TOKEN owner=router, renewer=some_renewer, realUser=, 
> issueDate=1720114742074, maxDate=1720114742174, sequenceNumber=6, 
> masterKeyId=37) max expiration date: 2024-07-04 17:39:02,174+0000 
> currentTime: 2024-07-04 17:39:02,233+0000
>  at 
> org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager.renewToken(AbstractDelegationTokenSecretManager.java:692)
>  at 
> org.apache.hadoop.hdfs.server.federation.router.security.RouterSecurityManager.renewDelegationToken(RouterSecurityManager.java:180)
>  at 
> org.apache.hadoop.hdfs.server.federation.security.TestRouterSecurityManager.testDelegationTokens(TestRouterSecurityManager.java:140)
> {noformat}
> Ref:
> https://ci-hadoop.apache.org/view/Hadoop/job/hadoop-qbt-trunk-java8-linux-x86_64/1628/testReport/junit/org.apache.hadoop.hdfs.server.federation.security/TestRouterSecurityManager/testDelegationTokens/



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to