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

ASF GitHub Bot commented on YARN-11509:
---------------------------------------

slfan1989 commented on code in PR #5727:
URL: https://github.com/apache/hadoop/pull/5727#discussion_r1231725831


##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/amrmproxy/TokenAndRegisterResponse.java:
##########
@@ -0,0 +1,42 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hadoop.yarn.server.nodemanager.amrmproxy;
+
+import org.apache.hadoop.security.token.Token;
+import 
org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse;
+import org.apache.hadoop.yarn.security.AMRMTokenIdentifier;
+
+public class TokenAndRegisterResponse {

Review Comment:
   Thank you very much for your help in reviewing the code! I will add java doc.





> The FederationInterceptor#launchUAM Added retry logic.
> ------------------------------------------------------
>
>                 Key: YARN-11509
>                 URL: https://issues.apache.org/jira/browse/YARN-11509
>             Project: Hadoop YARN
>          Issue Type: Improvement
>          Components: amrmproxy
>    Affects Versions: 3.4.0
>            Reporter: Shilun Fan
>            Assignee: Shilun Fan
>            Priority: Minor
>              Labels: pull-request-available
>
> There is a "todo" in the 
> FederationInterceptor#registerAndAllocateWithNewSubClusters method. According 
> to the "todo" description, the request needs to be retried to other 
> subclusters, but changing the parameter requests  in 
> registerAndAllocateWithNewSubClusters is not a good operation. It is better 
> to add retry logic here. 
> We don't need to worry about losing requests because when the request cannot 
> be satisfied, the AM of the task will continue to apply, and these requests 
> will be properly transferred to other clusters for execution.



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