[
https://issues.apache.org/jira/browse/AMBARI-14729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15111650#comment-15111650
]
Hudson commented on AMBARI-14729:
---------------------------------
ABORTED: Integrated in Ambari-trunk-Commit #4207 (See
[https://builds.apache.org/job/Ambari-trunk-Commit/4207/])
Unit Test for AMBARI-14729 : API does not return host component metrics.
(avijayan:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=780cb6912306beee5fad9b93652045d98ccdc362])
*
ambari-server/src/test/java/org/apache/ambari/server/controller/metrics/timeline/AMSPropertyProviderTest.java
* ambari-server/src/test/resources/ams/single_host_component_metrics_h2.json
* ambari-server/src/test/resources/ams/single_host_component_metrics_h1.json
> API does not return host component metrics (except for one host)
> ----------------------------------------------------------------
>
> Key: AMBARI-14729
> URL: https://issues.apache.org/jira/browse/AMBARI-14729
> Project: Ambari
> Issue Type: Bug
> Affects Versions: 2.1.2
> Reporter: Siddharth Wagle
> Assignee: Siddharth Wagle
> Priority: Critical
> Fix For: 2.2.1
>
> Attachments: AMBARI-14729-2.patch, AMBARI-14729.patch
>
>
> API does not return metrics at the host component level (except for one host).
> STR.
> Make a metrics API against various hosts for a specific metric.
> Example on a 3-node cluster:
> Call 1:
> http://172.22.89.227:8080/api/v1/clusters/c1/hosts/sid-ams-3.novalocal/host_components/DATANODE?fields=metrics/load/load_five[1453147641,1453169241,15]
> This returns the metrics on sid-ams-3.
> Call 2:
> http://172.22.89.227:8080/api/v1/clusters/c1/hosts/sid-ams-2.novalocal/host_components/DATANODE?fields=metrics/load/load_five[1453147641,1453169241,15]
> This returns no metrics data.
> Call 3:
> http://172.22.89.227:8080/api/v1/clusters/c1/hosts/sid-ams-1.novalocal/host_components/DATANODE?fields=metrics/load/load_five[1453147641,1453169241,15]
> This returns no metrics data.
> The example above is for a system metric, but the same behavior is exhibited
> for service metrics.
> For any given host component metric, only one of the hosts returns any
> metric. The *first host that you make a query against* will return the
> metrics data, but none of the other hosts.
> This is because of the cache implementation.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)