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 D252D1891A for ; Fri, 18 Dec 2015 16:37:33 +0000 (UTC) Received: (qmail 59269 invoked by uid 500); 18 Dec 2015 16:37:33 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 59231 invoked by uid 500); 18 Dec 2015 16:37:33 -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 59215 invoked by uid 99); 18 Dec 2015 16:37:33 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Dec 2015 16:37:33 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 25F0F294BDA; Fri, 18 Dec 2015 16:37:33 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============7273506110901351325==" MIME-Version: 1.0 Subject: Re: Review Request 41526: Hive Metastore alert timeout From: "Vitalyi Brodetskyi" To: "Andrew Onischuk" , "Sumit Mohanty" , "Dmytro Sen" , "Jonathan Hurley" Cc: "Vitalyi Brodetskyi" , "Ambari" Date: Fri, 18 Dec 2015 16:37:33 -0000 Message-ID: <20151218163733.11596.13644@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Vitalyi Brodetskyi" X-ReviewGroup: Ambari X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/41526/ X-Sender: "Vitalyi Brodetskyi" References: <20151218162853.1672.26274@reviews.apache.org> In-Reply-To: <20151218162853.1672.26274@reviews.apache.org> Reply-To: "Vitalyi Brodetskyi" X-ReviewRequest-Repository: ambari --===============7273506110901351325== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit > On Гру. 18, 2015, 4:28 після полудня, Andrew Onischuk wrote: > > ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog221.java, line 145 > > > > > > This is pretty useful function to parse alerts source json and change some values. > > Could we move those to general functions into abstractCatalog. > > > > I think we will need that a lot in future. > > > > Let's say we can create 2 functions one returns json as map, other saves the json. Or anything else general you think is better. > > Andrew Onischuk wrote: > The goal is to make future upgrade changes to alerts source look as small as possible. We have some usefull functions in entity as of now, so i think it will be better to add some additional there. Even if we will decide to add some functions in AbstractUpgradeCatalog, i think it should be implemented as a feature in separate jira, with Unit Tests and etc. - Vitalyi ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/41526/#review111196 ----------------------------------------------------------- On Гру. 18, 2015, 4:23 після полудня, Vitalyi Brodetskyi wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/41526/ > ----------------------------------------------------------- > > (Updated Гру. 18, 2015, 4:23 після полудня) > > > Review request for Ambari, Andrew Onischuk, Dmytro Sen, Jonathan Hurley, and Sumit Mohanty. > > > Bugs: AMBARI-14424 > https://issues.apache.org/jira/browse/AMBARI-14424 > > > Repository: ambari > > > Description > ------- > > For Hive metastore and server alerts > 1) Change default timeout to 60 seconds > 2) Make this a configurable script param, so people can pass this in > > > Diffs > ----- > > ambari-common/src/main/python/resource_management/libraries/functions/hive_check.py 55fd6bd > ambari-server/src/main/java/org/apache/ambari/server/upgrade/SchemaUpgradeHelper.java 5e22f71 > ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog221.java PRE-CREATION > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/alerts.json 55e3f78 > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/alerts/alert_hive_metastore.py c7a9102 > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/alerts/alert_hive_thrift_port.py a04c2a6 > ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog221Test.java PRE-CREATION > > Diff: https://reviews.apache.org/r/41526/diff/ > > > Testing > ------- > > mvn clean test > > > Thanks, > > Vitalyi Brodetskyi > > --===============7273506110901351325==--