You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Aravindan Vijayan (JIRA)" <ji...@apache.org> on 2017/06/14 19:47:00 UTC

[jira] [Comment Edited] (AMBARI-21249) Empty precision query parameter throws an error while fetching metrics from AMS.

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

Aravindan Vijayan edited comment on AMBARI-21249 at 6/14/17 7:46 PM:
---------------------------------------------------------------------

[~swagle] / [~dsen] / [~sumitmohanty] Can you review this simple patch?


was (Author: avijayan):
[~swagle], [~dsen] Can you review this simple patch?

> Empty precision query parameter throws an error while fetching metrics from AMS.
> --------------------------------------------------------------------------------
>
>                 Key: AMBARI-21249
>                 URL: https://issues.apache.org/jira/browse/AMBARI-21249
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-metrics
>    Affects Versions: 2.5.1
>            Reporter: Aravindan Vijayan
>            Assignee: Aravindan Vijayan
>             Fix For: 2.5.2
>
>         Attachments: AMBARI-21249.patch
>
>
> GET request
> http://c6401.ambari.apache.org:6188/ws/v1/timeline/metrics?metricNames=mem_free&hostname=c6401.ambari.apache.org&appId=HOST&precision=
> Exception thrown
> {code}
> {
> "exception": "BadRequestException",
> "message": "java.lang.Exception: precision should be seconds, minutes or hours",
> "javaClassName": "org.apache.hadoop.yarn.webapp.BadRequestException"
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)