hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wan...@apache.org
Subject incubator-hawq git commit: HAWQ-392. HAWQ init report ERROR but finished successfully.
Date Wed, 03 Feb 2016 07:12:42 GMT
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 <wangzw@apache.org>
Authored: Wed Feb 3 15:05:37 2016 +0800
Committer: Zhanwei Wang <wangzw@apache.org>
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":


Mime
View raw message