[
https://issues.apache.org/jira/browse/YARN-11649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17811177#comment-17811177
]
ASF GitHub Bot commented on YARN-11649:
---------------------------------------
jchanggg commented on code in PR #6481:
URL: https://github.com/apache/hadoop/pull/6481#discussion_r1467386186
##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/clientrm/FederationClientInterceptor.java:
##########
@@ -268,6 +272,18 @@ public void init(String userName) {
allowPartialResult = conf.getBoolean(
YarnConfiguration.ROUTER_INTERCEPTOR_ALLOW_PARTIAL_RESULT_ENABLED,
YarnConfiguration.DEFAULT_ROUTER_INTERCEPTOR_ALLOW_PARTIAL_RESULT_ENABLED);
+
+ overrideMaxClusterCapability = conf.getBoolean(
+ YarnConfiguration.FEDERATION_OVERRIDE_MAX_CLUSTER_CAPABILITY,
Review Comment:
Changed, also aligned indentation with repo format other files as well.
> 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]