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

Manikandan R commented on YARN-10198:
-------------------------------------

Above mentioned NULL check has been added to be in line with YARN-9840 changes. 
With above check in place, client side thinks there is no queue mapping rule as 
ApplicationPlacementContext is NULL. Without above checks, 
ApplicationPlacementContext is not null but queue name is NULL. In both cases, 
"default" queue would be used.

Should we do this checks only for regular parent queue?

> [managedParent].%primary_group mapping rule doesn't work after YARN-9868
> ------------------------------------------------------------------------
>
>                 Key: YARN-10198
>                 URL: https://issues.apache.org/jira/browse/YARN-10198
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: capacity scheduler
>            Reporter: Peter Bacsko
>            Assignee: Peter Bacsko
>            Priority: Major
>
> YARN-9868 introduced an unnecessary check if we have the following placement 
> rule:
> [managedParentQueue].%primary_group
> Here, {{%primary_group}} is expected to be created if it doesn't exist. 
> However, there is this validation code which is not necessary:
> {noformat}
>           } else if (mapping.getQueue().equals(PRIMARY_GROUP_MAPPING)) {
>             if (this.queueManager
>                 .getQueue(groups.getGroups(user).get(0)) != null) {
>               return getPlacementContext(mapping,
>                   groups.getGroups(user).get(0));
>             } else {
>               return null;
>             }
> {noformat}
> We should revert this part to the original version:
> {noformat}
>           } else if (mapping.queue.equals(PRIMARY_GROUP_MAPPING)) {
>             return getPlacementContext(mapping, 
> groups.getGroups(user).get(0));
>         }
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to