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

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

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


##########
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenSecretManager.java:
##########
@@ -81,7 +81,12 @@ class AbstractDelegationTokenSecretManager<TokenIdent
       = DelegationTokenSecretManagerMetrics.create();
 
   private String formatTokenId(TokenIdent id) {
-    return "(" + id + ")";
+    try {
+      return "(" + id + ")";
+    } catch (Exception e) {
+      LOG.warn("Exception in formatTokenId", e);

Review Comment:
   As HDFS-17138 mentioned, here will throw NoMatchingRule if set unexpected 
kerberos rules.
   
https://github.com/apache/hadoop/blob/8d95c588d2df0048b0d3eb711d74bf34bf4ae3c4/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/util/KerberosName.java#L428-L430





> 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