slfan1989 commented on code in PR #9020:
URL: https://github.com/apache/hadoop/pull/9020#discussion_r4667109349
##########
hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/token/delegation/TestZKDelegationTokenSecretManager.java:
##########
@@ -530,6 +530,7 @@ public Boolean get() {
return dtinfo == null;
}
}, 100, 5000);
+ tm.renewToken(token, "good");
Review Comment:
Could we make token expiry test-controlled? The 10-second renewal window
starts before the old manager shuts down, so a slow restart can still let the
token expire before the new cache observes it. We could make it expire after
asserting that it was loaded into memory.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]