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

Nate Cole commented on AMBARI-1523:
-----------------------------------

+1, patch looks good
                
> Ambari API: Resources doesn't always honor partial response fields 
> restrictions
> -------------------------------------------------------------------------------
>
>                 Key: AMBARI-1523
>                 URL: https://issues.apache.org/jira/browse/AMBARI-1523
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Tom Beerbower
>            Assignee: Tom Beerbower
>             Fix For: 1.3.0
>
>         Attachments: AMBARI-1523.patch
>
>
> For the request:
> /api/v1/clusters/c1/hosts/dev.hortonworks.com?fields=host_components
> or the request:
> http://localhost:8080/api/v1/clusters/c1/services/HDFS/components/NAMENODE?fields=host_components
> Metrics data is returned for the top level resource even though it isn't 
> specified in the partial response data. This is bad because gathering metrics 
> data is expensive and it should not be gathered if it is not needed. This is 
> a significant performance issue.
> This seems to be an issue with resources that contain metric data for queries 
> requesting a sub-resource only.

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