Return-Path: X-Original-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DCB2BEF3C for ; Mon, 4 Feb 2013 18:22:12 +0000 (UTC) Received: (qmail 33952 invoked by uid 500); 4 Feb 2013 18:22:12 -0000 Delivered-To: apmail-incubator-ambari-dev-archive@incubator.apache.org Received: (qmail 33916 invoked by uid 500); 4 Feb 2013 18:22:12 -0000 Mailing-List: contact ambari-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-dev@incubator.apache.org Received: (qmail 33822 invoked by uid 99); 4 Feb 2013 18:22:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2013 18:22:12 +0000 Date: Mon, 4 Feb 2013 18:22:12 +0000 (UTC) From: "Yusaku Sako (JIRA)" To: ambari-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-1341) Add Hosts: update the API call for new operator precedence MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-1341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yusaku Sako updated AMBARI-1341: -------------------------------- Attachment: AMBARI-1341.patch > 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