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

Weiwei Yang commented on YARN-7822:
-----------------------------------

Hi [~kkaranasos]
Attached v5 patch that basically supports all nested forms of constraints, it's 
relative easy as when we iterate over the constraint tree, we only need to 
compute child constraint result to determine if the composite constraint is 
satisfied or not. So it's like
{code}
//Cn can be either a single constraint (target expression, cardinality 
expression etc) or a composite constraint (AND or OR)
[AND|OR](C1, ..., Cn)
{code}
Also added test case in {{TestPlacementConstraintsUtil}}.
Please take a look. Thanks.

 

 

> Constraint satisfaction checker support for composite OR and AND constraints
> ----------------------------------------------------------------------------
>
>                 Key: YARN-7822
>                 URL: https://issues.apache.org/jira/browse/YARN-7822
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Arun Suresh
>            Assignee: Weiwei Yang
>            Priority: Major
>         Attachments: YARN-7822-YARN-6592.001.patch, 
> YARN-7822-YARN-6592.002.patch, YARN-7822-YARN-6592.003.patch, 
> YARN-7822-YARN-6592.004.patch, YARN-7822-YARN-6592.005.patch
>
>
> JIRA to track changes to {{PlacementConstraintsUtil#canSatisfyConstraints}} 
> handle OR and AND Composite constaints



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to