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

Weiwei Yang commented on YARN-8681:
-----------------------------------

Hi [~snemeth]

I am going to completely redo 
\{{SingleConstraintAppPlacementAllocator#validateAndSetSchedulingRequest}} in 
YARN-8015 in order to fully support various of constraints, so this will be 
removed. I don't think this is necessary to fix anymore. 

 

> Wrong error message in RM placement constraints check
> -----------------------------------------------------
>
>                 Key: YARN-8681
>                 URL: https://issues.apache.org/jira/browse/YARN-8681
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: scheduler
>    Affects Versions: 3.2.0, 3.1.1
>            Reporter: Daniel Templeton
>            Assignee: Szilard Nemeth
>            Priority: Major
>         Attachments: YARN-8681.001.patch
>
>
> In 
> {{SingleConstraintAppPlacementAllocator.validateAndSetSchedulingRequest()}} I 
> see the following:
> {code}      if (singleConstraint.getMinCardinality() != 0
>           || singleConstraint.getMaxCardinality() != 0) {
>         throwExceptionWithMetaInfo(
>             "Only support anti-affinity, which is: minCardinality=0, "
>                 + "maxCardinality=1");
>       }{code}
> I think the error message should say {{"maxCardinality=0"}}



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