Return-Path: X-Original-To: apmail-hawq-commits-archive@minotaur.apache.org Delivered-To: apmail-hawq-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 707691853E for ; Wed, 3 Feb 2016 07:12:44 +0000 (UTC) Received: (qmail 40627 invoked by uid 500); 3 Feb 2016 07:12:44 -0000 Delivered-To: apmail-hawq-commits-archive@hawq.apache.org Received: (qmail 40588 invoked by uid 500); 3 Feb 2016 07:12:44 -0000 Mailing-List: contact commits-help@hawq.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hawq.incubator.apache.org Delivered-To: mailing list commits@hawq.incubator.apache.org Received: (qmail 40579 invoked by uid 99); 3 Feb 2016 07:12:44 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Feb 2016 07:12:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id F3301C0D7F for ; Wed, 3 Feb 2016 07:12:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.235 X-Spam-Level: * X-Spam-Status: No, score=1.235 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.545] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 3h8wOoLEhDmI for ; Wed, 3 Feb 2016 07:12:43 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id B76EF428ED for ; Wed, 3 Feb 2016 07:12:42 +0000 (UTC) Received: (qmail 40490 invoked by uid 99); 3 Feb 2016 07:12:42 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Feb 2016 07:12:42 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 3D80CDFC90; Wed, 3 Feb 2016 07:12:42 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: wangzw@apache.org To: commits@hawq.incubator.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: incubator-hawq git commit: HAWQ-392. HAWQ init report ERROR but finished successfully. Date: Wed, 3 Feb 2016 07:12:42 +0000 (UTC) Repository: incubator-hawq Updated Branches: refs/heads/master c26d265fc -> 5b6ce99b2 HAWQ-392. HAWQ init report ERROR but finished successfully. Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/5b6ce99b Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/5b6ce99b Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/5b6ce99b Branch: refs/heads/master Commit: 5b6ce99b20c97d9ed6ee08932d4f34e276e104e2 Parents: c26d265 Author: Zhanwei Wang Authored: Wed Feb 3 15:05:37 2016 +0800 Committer: Zhanwei Wang Committed: Wed Feb 3 15:05:37 2016 +0800 ---------------------------------------------------------------------- tools/bin/hawq_ctl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/5b6ce99b/tools/bin/hawq_ctl ---------------------------------------------------------------------- diff --git a/tools/bin/hawq_ctl b/tools/bin/hawq_ctl index 0d17c8b..d9321fc 100755 --- a/tools/bin/hawq_ctl +++ b/tools/bin/hawq_ctl @@ -306,7 +306,8 @@ class HawqInit: master_cmd = self._get_master_init_cmd() logger.info("Start to init master node: '%s'" % self.master_host_name) - check_return_code(local_ssh(master_cmd, logger), logger, "Master init failed, exit", \ + check_return_code(local_ssh(master_cmd, logger, warning = True), logger, \ + "Master init failed, exit", \ "Master init successfully") if self.standby_host_name.lower() not in ('', 'none'): check_return_code(self._init_standby(), logger, \ @@ -345,7 +346,7 @@ class HawqInit: check_return_code(self.set_vsegment_num_per_node()) logger.info("Start to init master") cmd = self._get_master_init_cmd() - check_return_code(local_ssh(cmd, logger), logger, \ + check_return_code(local_ssh(cmd, logger, warning = True), logger, \ "Master init failed, exit", "Master init successfully") elif self.node_type == "standby" and self.remove_standby is True: logger.info("Try to remove standby master") @@ -366,7 +367,8 @@ class HawqInit: elif self.node_type == "segment": cmd = self._get_segment_init_cmd() - check_return_code(local_ssh(cmd, logger), logger, "Segment init failed, exit", \ + check_return_code(local_ssh(cmd, logger, warning = True), logger, \ + "Segment init failed, exit", \ "Segment init successfully") elif self.node_type == "cluster":