[
https://issues.apache.org/jira/browse/YARN-11649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17809879#comment-17809879
]
ASF GitHub Bot commented on YARN-11649:
---------------------------------------
jchanggg commented on code in PR #6481:
URL: https://github.com/apache/hadoop/pull/6481#discussion_r1463070128
##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/clientrm/FederationClientInterceptor.java:
##########
@@ -116,10 +116,7 @@
import
org.apache.hadoop.yarn.api.protocolrecords.UpdateApplicationPriorityResponse;
import
org.apache.hadoop.yarn.api.protocolrecords.UpdateApplicationTimeoutsRequest;
import
org.apache.hadoop.yarn.api.protocolrecords.UpdateApplicationTimeoutsResponse;
-import org.apache.hadoop.yarn.api.records.ApplicationAttemptId;
-import org.apache.hadoop.yarn.api.records.ApplicationId;
-import org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext;
-import org.apache.hadoop.yarn.api.records.ReservationId;
+import org.apache.hadoop.yarn.api.records.*;
Review Comment:
Reverted back to using no `*`
> YARN Federation getNewApplication returns different maxresourcecapability
> -------------------------------------------------------------------------
>
> Key: YARN-11649
> URL: https://issues.apache.org/jira/browse/YARN-11649
> Project: Hadoop YARN
> Issue Type: Bug
> Reporter: Jeffrey Chang
> Assignee: Jeffrey Chang
> Priority: Minor
> Labels: pull-request-available
>
> When getNewApplication is called against YARN Router with Federation on, its
> possible we get different maxResourceCapabilities in its response on
> different calls. This is because getNewApplication is called against a random
> cluster on each call, which may return different maxResourceCapability based
> on the cluster that the call is executed on. ie in response in HTTP
> [https://hadoop.apache.org/docs/stable/hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html#Cluster_New_Application_API]
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]