You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "John Speidel (JIRA)" <ji...@apache.org> on 2012/12/15 03:58:12 UTC

[jira] [Commented] (AMBARI-1089) Querying host_component resources by HostRoles/state doesn't return the correct data sometimes

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

John Speidel commented on AMBARI-1089:
--------------------------------------

@Ignored a related test to be evaluated by the author:
AmbariManagementControllerTest.testGetServiceComponentHostsWithFilters()
                
> 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