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

Alejandro Abdelnur commented on YARN-791:
-----------------------------------------

I think we should have consistency between the HTTP and JAVA API (and at 
ProtoBuffer if possible):

Over HTTP if we don't specify a state we get RUNNING only and we can specify 
multiple state values separated by commas

Over Java we can achieve the exact same behavior by using a a var arg (State 
... states), if called with () would be RUNNING only.

And, as ProtoBuffer is taking a list, so if the list is empty we get RUNNING.



                
> Ensure that RM RPC APIs that return nodes are consistent with /nodes REST API
> -----------------------------------------------------------------------------
>
>                 Key: YARN-791
>                 URL: https://issues.apache.org/jira/browse/YARN-791
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: api, resourcemanager
>    Affects Versions: 2.0.4-alpha
>            Reporter: Sandy Ryza
>            Assignee: Sandy Ryza
>         Attachments: YARN-791-1.patch, YARN-791-2.patch, YARN-791-3.patch, 
> YARN-791-4.patch, YARN-791.patch
>
>


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