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 117ED1858B for ; Tue, 15 Dec 2015 02:21:13 +0000 (UTC) Received: (qmail 17321 invoked by uid 500); 15 Dec 2015 02:21:13 -0000 Delivered-To: apmail-hawq-commits-archive@hawq.apache.org Received: (qmail 17277 invoked by uid 500); 15 Dec 2015 02:21:12 -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 17268 invoked by uid 99); 15 Dec 2015 02:21:12 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Dec 2015 02:21:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 78B6E1A0449 for ; Tue, 15 Dec 2015 02:21:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.227 X-Spam-Level: * X-Spam-Status: No, score=1.227 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.554, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id M7DHEeK7vk17 for ; Tue, 15 Dec 2015 02:21:05 +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 0764442989 for ; Tue, 15 Dec 2015 02:21:04 +0000 (UTC) Received: (qmail 16989 invoked by uid 99); 15 Dec 2015 02:21:04 -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; Tue, 15 Dec 2015 02:21:04 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 617C9E04BE; Tue, 15 Dec 2015 02:21:04 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: rlei@apache.org To: commits@hawq.incubator.apache.org Message-Id: <1d280dd5664740429eddd0121579250e@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: incubator-hawq git commit: HAWQ-251. Add gpfaultinjector back for hawq2.0 using. Date: Tue, 15 Dec 2015 02:21:04 +0000 (UTC) Repository: incubator-hawq Updated Branches: refs/heads/master cefe2fe46 -> 11bdfd460 HAWQ-251. Add gpfaultinjector back for hawq2.0 using. Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/11bdfd46 Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/11bdfd46 Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/11bdfd46 Branch: refs/heads/master Commit: 11bdfd460a3431e81e2db9e89b47eceda38ea894 Parents: cefe2fe Author: rlei Authored: Mon Dec 14 15:31:56 2015 +0800 Committer: rlei Committed: Tue Dec 15 10:20:23 2015 +0800 ---------------------------------------------------------------------- tools/bin/gpfaultinjector | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/11bdfd46/tools/bin/gpfaultinjector ---------------------------------------------------------------------- diff --git a/tools/bin/gpfaultinjector b/tools/bin/gpfaultinjector new file mode 100755 index 0000000..afb7cda --- /dev/null +++ b/tools/bin/gpfaultinjector @@ -0,0 +1,17 @@ +#!/usr/bin/env python +# +# Copyright (c) Greenplum Inc 2010. All Rights Reserved. +# +# +# THIS IMPORT MUST COME FIRST +# import mainUtils FIRST to get python version check +# +from gppylib.mainUtils import * + +# now reset of imports +from gppylib.programs.clsInjectFault import * + +#------------------------------------------------------------------------- +if __name__ == '__main__': + simple_main( GpInjectFaultProgram.createParser, GpInjectFaultProgram.createProgram) +