Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3BDC6189C6 for ; Tue, 26 May 2015 13:12:19 +0000 (UTC) Received: (qmail 71918 invoked by uid 500); 26 May 2015 13:12:19 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 71877 invoked by uid 500); 26 May 2015 13:12:19 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 71866 invoked by uid 99); 26 May 2015 13:12:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 May 2015 13:12:19 +0000 Date: Tue, 26 May 2015 13:12:18 +0000 (UTC) From: =?utf-8?Q?Cl=C3=A9ment_Lardeur_=28JIRA=29?= To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CASSANDRA-9477) nodetool repair should exit with non-zero status on failure MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-9477?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:all-tabpanel ] Cl=C3=A9ment Lardeur updated CASSANDRA-9477: --------------------------------------- Attachment: cassandra-2.1-9477.patch Throw a runtime exception and exit with non-zero status code when JMX comma= nd has failed. > nodetool repair should exit with non-zero status on failure > ----------------------------------------------------------- > > Key: CASSANDRA-9477 > URL: https://issues.apache.org/jira/browse/CASSANDRA-9477 > Project: Cassandra > Issue Type: Bug > Components: Tools > Reporter: Randy Fradin > Assignee: Cl=C3=A9ment Lardeur > Priority: Minor > Fix For: 2.1.x > > Attachments: cassandra-2.1-9477.patch > > > Previously nodetool repair would exit with a non-zero status code when it= experienced an error (like in CASSANDRA-5203), e.g. due a neighbor being d= own or a failed stream. It appears this is no longer the case, which makes = it a bit harder to automate repair. I suspect it's been this way since CASS= ANDRA-6381 was implemented, and that it probably affects other nodetool com= mands as well. > It looks like NodeProbe tracks when a failure occurs and this is accessib= le via NodeProbe.isFailed(), but that value is not being used anywhere. I t= hink the problem could be fixed inside NodeTool.NodeToolCmd.run(), if after= the execute function is called, probe.isFailed() is checked and a RuntimeE= xception is thrown if a failure has occurred. -- This message was sent by Atlassian JIRA (v6.3.4#6332)