You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2023/02/14 14:34:00 UTC

[jira] [Commented] (YARN-11408) Add a check of autoQueueCreation is disabled for emitDefaultUserLimitFactor method

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

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

brumi1024 commented on code in PR #5278:
URL: https://github.com/apache/hadoop/pull/5278#discussion_r1105904503


##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/converter/TestFSConfigToCSConfigConverter.java:
##########
@@ -194,6 +199,10 @@ public void testDefaultUserLimitFactor() throws Exception {
 
     assertNull("root.users user-limit-factor should be null",
             conf.get(PREFIX + "root.users." + USER_LIMIT_FACTOR));
+    assertEquals("root.users auto-queue-creation-v2.enabled", "true",
+            conf.get(PREFIX + "root.users.auto-queue-creation-v2.enabled"));
+    assertNull( "root.users auto-create-child-queue.enabled should be null",
+            conf.get(PREFIX + "root.users.auto-create-child-queue.enabled"));

Review Comment:
   Update: checked the code, because I was under the impression we're automatically adding the auto-create in percentage conversion as well, however it's not the case: [https://github.com/apache/hadoop/blob/d336227e5c63a70db06ac26697994c96ed89d230/had[…]ger/scheduler/fair/converter/FSConfigToCSConfigRuleHandler.java](https://github.com/apache/hadoop/blob/d336227e5c63a70db06ac26697994c96ed89d230/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/converter/FSConfigToCSConfigRuleHandler.java#L192)
   Sorry for that, please disregard my comment, and feel free to remove the original check for this.





> Add a check of autoQueueCreation is disabled for emitDefaultUserLimitFactor method  
> ------------------------------------------------------------------------------------
>
>                 Key: YARN-11408
>                 URL: https://issues.apache.org/jira/browse/YARN-11408
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: yarn
>            Reporter: Susheel Gupta
>            Assignee: Susheel Gupta
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.4.0
>
>
> It is required to add user-limit-factor to -1 only for those queues which are leafqueue and auto-queue-creation is disabled. 
> Follow-up of YARN-11393



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org