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

ASF GitHub Bot commented on HDFS-17138:
---------------------------------------

zhangxiping1 commented on code in PR #5921:
URL: https://github.com/apache/hadoop/pull/5921#discussion_r1292902814


##########
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/security/TestDelegationToken.java:
##########
@@ -376,4 +382,61 @@ public void testDelegationTokenIdentifierToString() throws 
Exception {
         " for SomeUser with renewer JobTracker",
         dtId.toStringStable());
   }
+
+  public static class MyDelegationTokenSecretManager extends
+      AbstractDelegationTokenSecretManager<DelegationTokenIdentifier> {
+    /**
+     * Create a secret manager
+     *
+     * @param delegationKeyUpdateInterval        the number of milliseconds 
for rolling
+     *                                           new secret keys.
+     * @param delegationTokenMaxLifetime         the maximum lifetime of the 
delegation
+     *                                           tokens in milliseconds
+     * @param delegationTokenRenewInterval       how often the tokens must be 
renewed
+     *                                           in milliseconds
+     * @param delegationTokenRemoverScanInterval how often the tokens are 
scanned
+     *                                           for expired tokens in 
milliseconds
+     */
+    public MyDelegationTokenSecretManager(long delegationKeyUpdateInterval,
+        long delegationTokenMaxLifetime, long delegationTokenRenewInterval,
+        long delegationTokenRemoverScanInterval) {
+      super(delegationKeyUpdateInterval,

Review Comment:
   Yes, the ExpiredTokenRemover thread will operate automatically, which is 
selected to be called automatically in the test case to determine if an 
exception has been generated. If an exception has been generated, it indicates 
that it has not been fixed.Any suggestions for improvement?





> RBF: We changed the hadoop.security.auth_to_local configuration of one 
> router, the other routers stopped working
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-17138
>                 URL: https://issues.apache.org/jira/browse/HDFS-17138
>             Project: Hadoop HDFS
>          Issue Type: Bug
>         Environment: hadoop 3.3.0
>            Reporter: Xiping Zhang
>            Assignee: Xiping Zhang
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: image-2023-08-02-16-20-34-454.png, 
> image-2023-08-03-10-32-03-457.png
>
>
> other routers  error log:
> !image-2023-08-02-16-20-34-454.png!



--
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