ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-14729) API does not return host component metrics (except for one host)
Date Wed, 20 Jan 2016 02:58:39 GMT

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

Hudson commented on AMBARI-14729:
---------------------------------

FAILURE: Integrated in Ambari-branch-2.2 #221 (See [https://builds.apache.org/job/Ambari-branch-2.2/221/])
AMBARI-14729. API does not return host component metrics except for one (swagle: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=059ffc0a5f512cc6312031f7f23479b97c200685])
* ambari-server/src/main/java/org/apache/ambari/server/controller/metrics/timeline/cache/TimelineAppMetricCacheKey.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/metrics/timeline/AMSPropertyProvider.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/metrics/timeline/cache/TimelineMetricsCacheSizeOfEngine.java


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

Mime
View raw message