You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Srimanth Gunturi (JIRA)" <ji...@apache.org> on 2013/02/04 19:28:13 UTC

[jira] [Commented] (AMBARI-1341) Add Hosts: update the API call for new operator precedence

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

Srimanth Gunturi commented on AMBARI-1341:
------------------------------------------

+1. Always good to have brackets around boolean logic.
                
> Add Hosts: update the API call for new operator precedence
> ----------------------------------------------------------
>
>                 Key: AMBARI-1341
>                 URL: https://issues.apache.org/jira/browse/AMBARI-1341
>             Project: Ambari
>          Issue Type: Improvement
>          Components: client
>    Affects Versions: 1.2.1
>            Reporter: Yusaku Sako
>            Assignee: Yusaku Sako
>             Fix For: 1.3.0
>
>         Attachments: AMBARI-1341.patch
>
>
> Ambari API has implemented operator precedence for predicates.
> Previously, a=1|a=2|a=3&b=1 was interpreted as (a==1||a==2||a==3)&&(b==1).
> With the addition of operator precedence, it would be interpreted as a==1||a==2||(a==3&&b==1).
> In step9_controller, UI makes a call to App.apiPrefix + '/clusters/' + clusterName + '/host_components?HostRoles/component_name=GANGLIA_MONITOR|HostRoles/component_name=HBASE_REGIONSERVER|HostRoles/component_name=DATANODE|HostRoles/component_name=TASKTRACKER&HostRoles/state=INSTALLED'.
> This is for starting service components that have been installed during Add Host Wizard.
> This should be changed to App.apiPrefix + '/clusters/' + clusterName + '/host_components?(HostRoles/component_name=GANGLIA_MONITOR|HostRoles/component_name=HBASE_REGIONSERVER|HostRoles/component_name=DATANODE|HostRoles/component_name=TASKTRACKER)&HostRoles/state=INSTALLED'.

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