incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Beerbower (JIRA)" <>
Subject [jira] [Reopened] (AMBARI-2254) Reduce number of requests when querying for subtasks
Date Wed, 19 Jun 2013 09:48:21 GMT


Tom Beerbower reopened AMBARI-2254:

Causes an issue with sub-resources.

Revert AMBARI-2254 - Reduce number of requests when querying for subtasks
Committed revision 1494526.
> Reduce number of requests when querying for subtasks
> ----------------------------------------------------
>                 Key: AMBARI-2254
>                 URL:
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Tom Beerbower
>            Assignee: Tom Beerbower
>             Fix For: 1.2.5
>         Attachments: AMBARI-2254.patch
> A query like ...
> /services?fields=components/ServiceComponentInfo,components/host_components,components/host_components/HostRoles
> ... will create multiple requests for resources through the ClusterController. It looks
like ClusterController gets called once for all the services, then once for all of the components
under each service, then once for all the host_components under each component under each
service. So, if there are 10 services that each have 10 components, there will be 100 calls
to the ClusterController to get host components, plus 10 calls for the components and another
for the services. We should be able to optimize this down to 3 calls... 1 for the services,
1 for the components and 1 for the host_components.

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:

View raw message