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 B3C4F189F1 for ; Tue, 1 Mar 2016 01:38:40 +0000 (UTC) Received: (qmail 53079 invoked by uid 500); 1 Mar 2016 01:38:40 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 53039 invoked by uid 500); 1 Mar 2016 01:38:40 -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 53026 invoked by uid 99); 1 Mar 2016 01:38:40 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Mar 2016 01:38:40 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 5D76A2E72A6; Tue, 1 Mar 2016 01:38:39 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============9213449104648935784==" MIME-Version: 1.0 Subject: Re: Review Request 44119: Alerts for PXF component status From: Oleksandr Diachenko To: jun aoki , Oleksandr Diachenko , Ambari Date: Tue, 01 Mar 2016 01:38:39 -0000 Message-ID: <20160301013839.26941.17812@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Oleksandr Diachenko X-ReviewGroup: Ambari X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/44119/ X-Sender: Oleksandr Diachenko References: <20160229235023.26941.89638@reviews.apache.org> In-Reply-To: <20160229235023.26941.89638@reviews.apache.org> X-ReviewBoard-Diff-For: ambari-server/src/test/python/stacks/2.3/PXF/test_alerts_api_status.py X-ReviewBoard-Diff-For: ambari-server/src/main/resources/common-services/PXF/3.0.0/package/alerts/api_status.py X-ReviewBoard-Diff-For: ambari-server/src/main/resources/common-services/PXF/3.0.0/alerts.json Reply-To: Oleksandr Diachenko X-ReviewRequest-Repository: ambari --===============9213449104648935784== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/44119/#review121376 ----------------------------------------------------------- ambari-server/src/main/resources/common-services/PXF/3.0.0/package/alerts/api_status.py (line 88) +1 for using Fail instead of Exception. Some of try-except blocks might be expection type Fail, not Exception and exception wouldn't be handled propertly. ambari-server/src/main/resources/common-services/PXF/3.0.0/package/alerts/api_status.py (line 106) Extra space and colon needed? ambari-server/src/main/resources/common-services/PXF/3.0.0/package/alerts/api_status.py (line 121) Better to raise Fail. ambari-server/src/main/resources/common-services/PXF/3.0.0/package/alerts/api_status.py (line 127) There is JIRA in current trunk, which changed version response to this format: { "version": "v14"} https://issues.apache.org/jira/browse/HAWQ-340 So patch for trunk might be expect new response format. ambari-server/src/test/python/stacks/2.3/PXF/test_alerts_api_status.py (line 26) Are we using all files which we are importing? If no, I would explicitly import whatever you need only. - Oleksandr Diachenko On Feb. 29, 2016, 11:50 p.m., jun aoki wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/44119/ > ----------------------------------------------------------- > > (Updated Feb. 29, 2016, 11:50 p.m.) > > > Review request for Ambari. > > > Bugs: AMBARI-15211 > https://issues.apache.org/jira/browse/AMBARI-15211 > > > Repository: ambari > > > Description > ------- > > Add alerts for PXF availability. > The availability could be same as its service check. (by hitting the version api) > > > Diffs > ----- > > ambari-server/src/main/resources/common-services/PXF/3.0.0/alerts.json PRE-CREATION > ambari-server/src/main/resources/common-services/PXF/3.0.0/package/alerts/api_status.py PRE-CREATION > ambari-server/src/test/python/stacks/2.3/PXF/test_alerts_api_status.py PRE-CREATION > > Diff: https://reviews.apache.org/r/44119/diff/ > > > Testing > ------- > > Manually tested. > > > ---------------------------------------------------------------------- > Ran 275 tests in 6.876s > > OK > ---------------------------------------------------------------------- > Total run:924 > Total errors:0 > Total failures:0 > OK > > > Thanks, > > jun aoki > > --===============9213449104648935784==--