Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E4C791734D for ; Wed, 23 Sep 2015 17:52:04 +0000 (UTC) Received: (qmail 79311 invoked by uid 500); 23 Sep 2015 17:52:04 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 79279 invoked by uid 500); 23 Sep 2015 17:52:04 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 79265 invoked by uid 99); 23 Sep 2015 17:52:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Sep 2015 17:52:04 +0000 Date: Wed, 23 Sep 2015 17:52:04 +0000 (UTC) From: "Hudson (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-13209) API returns incorrect info about alerts MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-13209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14904904#comment-14904904 ] Hudson commented on AMBARI-13209: --------------------------------- SUCCESS: Integrated in Ambari-trunk-Commit #3496 (See [https://builds.apache.org/job/Ambari-trunk-Commit/3496/]) AMBARI-13209. API returns incorrect info about alerts (dlysnichenko) (dlysnichenko: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=d05dd665487aabad6f3b75297c396615f4eff94c) * ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertsDAO.java > API returns incorrect info about alerts > --------------------------------------- > > Key: AMBARI-13209 > URL: https://issues.apache.org/jira/browse/AMBARI-13209 > Project: Ambari > Issue Type: Bug > Affects Versions: 2.1.2 > Reporter: Dmitry Lysnichenko > Assignee: Dmitry Lysnichenko > Priority: Critical > Fix For: 2.1.2 > > Attachments: AMBARI-13209.patch > > > Steps: > # Deploy cluster. > # Stop some service. > # Wait for alerts appearing. > Result: Hosts page button does not have counter with alerted hosts. > "http://host:8080/api/v1/clusters/cl1?fields=Clusters/health_report,Clusters/total_hosts,alerts_summary_hosts&minimal_response=true": > {code} > { > "Clusters" : { > "cluster_name" : "cl1", > "health_report" : { > "Host/stale_config" : 0, > "Host/maintenance_state" : 0, > "Host/host_state/HEALTHY" : 4, > "Host/host_state/UNHEALTHY" : 0, > "Host/host_state/HEARTBEAT_LOST" : 0, > "Host/host_state/INIT" : 0, > "Host/host_status/HEALTHY" : 0, > "Host/host_status/UNHEALTHY" : 1, > "Host/host_status/UNKNOWN" : 0, > "Host/host_status/ALERT" : 3 > }, > "total_hosts" : 4, > "version" : "HDP-2.3" > }, > "alerts_summary_hosts" : { > "CRITICAL" : 0, > "OK" : 4, > "UNKNOWN" : 0, > "WARNING" : 0 > } > } > {code} > {code} > "CRITICAL" : 0, > "WARNING" : 0 > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)