incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Speidel (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-1089) Querying host_component resources by HostRoles/state doesn't return the correct data sometimes
Date Sat, 15 Dec 2012 02:52:12 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-1089?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

John Speidel updated AMBARI-1089:
---------------------------------

       Assignee: John Speidel
    Description: 
When querying host_components and specifying a state in the predicate, the correct data is
not always returned.

http://some.host.com:8080/api/v1/clusters/c1/host_components?HostRoles/state=INIT

This may return no data even though: 
http://some.host.com:8080/api/v1/clusters/yusaku/host_components?fields=HostRoles/state

Returns resources that are in the INIT state.

The problem was that when the state comparison was made in the back-end, the predicate state
was compared to the 'desired_state' property of the host_component instead of the 'state'
property.
        Summary: Querying host_component resources by HostRoles/state doesn't return the correct
data sometimes  (was: Querying host_component resources by state doesn)
    
> Querying host_component resources by HostRoles/state doesn't return the correct data
sometimes
> ----------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-1089
>                 URL: https://issues.apache.org/jira/browse/AMBARI-1089
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: John Speidel
>            Assignee: John Speidel
>
> When querying host_components and specifying a state in the predicate, the correct data
is not always returned.
> http://some.host.com:8080/api/v1/clusters/c1/host_components?HostRoles/state=INIT
> This may return no data even though: 
> http://some.host.com:8080/api/v1/clusters/yusaku/host_components?fields=HostRoles/state
> Returns resources that are in the INIT state.
> The problem was that when the state comparison was made in the back-end, the predicate
state was compared to the 'desired_state' property of the host_component instead of the 'state'
property.

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

Mime
View raw message