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

Bilwa S T commented on YARN-10425:
----------------------------------

Thanks [~shuzirra] for patch. I have minor nit

1. Why is null check needed in below code? Null can be returned only in case of 
LeafQueue.getChildQueues() but here its parentQueue and 
ParentQueue.getChildQueues() never return null.
{code:java}
if (parentQueue.getChildQueues() != null) {
     for (CSQueue queue : parentQueue.getChildQueues()) {
             if (queue instanceof LeafQueue) {
                  //if a non managed parent queue has at least one leaf queue, 
this
                  /mapping can be valid, we cannot do any more checks
                  return true;
             }
{code}

> Replace the legacy placement engine in CS with the new one
> ----------------------------------------------------------
>
>                 Key: YARN-10425
>                 URL: https://issues.apache.org/jira/browse/YARN-10425
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Gergely Pollak
>            Assignee: Gergely Pollak
>            Priority: Major
>         Attachments: YARN-10425.001.patch
>
>
> Remove the UserGroupMapping and ApplicationName mapping classes, and use the 
> new CSMappingPlacementRule instead. Also cleanup the orphan classes which are 
> used by these classes only.



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