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

Steve Loughran commented on YARN-1018:
--------------------------------------

OK, but there's a risk that an empty array has come from some feature (like the 
list of past containers), and that if the list is non-empty then that's because 
there were no past containers.

If it is rejected if the node list is empty, then you may end up coding
{code}
boolean strict = nodes.length! =0
new AMRMClient.ContainerRequest(capability, nodes, null, 0, !strict);
{code}
                
> prereq check for AMRMClient.ContainerRequest relaxLocality flag wrong
> ---------------------------------------------------------------------
>
>                 Key: YARN-1018
>                 URL: https://issues.apache.org/jira/browse/YARN-1018
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 2.1.0-beta
>            Reporter: Steve Loughran
>            Priority: Minor
>
> Trying to create a container request with no racks/nodes and no relaxed 
> priority fails
> {code}
> new AMRMClient.ContainerRequest(capability, null, null, 0, false);
> {code}
> expected: a container request.
> actual: stack trace saying I can't relax node locality.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to