Return-Path: X-Original-To: apmail-storm-dev-archive@minotaur.apache.org Delivered-To: apmail-storm-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6D0F311A7E for ; Tue, 1 Jul 2014 18:18:49 +0000 (UTC) Received: (qmail 89596 invoked by uid 500); 1 Jul 2014 18:18:49 -0000 Delivered-To: apmail-storm-dev-archive@storm.apache.org Received: (qmail 89544 invoked by uid 500); 1 Jul 2014 18:18:49 -0000 Mailing-List: contact dev-help@storm.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@storm.incubator.apache.org Delivered-To: mailing list dev@storm.incubator.apache.org Received: (qmail 89533 invoked by uid 99); 1 Jul 2014 18:18:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2014 18:18:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 01 Jul 2014 18:18:50 +0000 Received: (qmail 87189 invoked by uid 99); 1 Jul 2014 18:18:24 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2014 18:18:24 +0000 Date: Tue, 1 Jul 2014 18:18:24 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@storm.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (STORM-87) ShellBolt shoud fail fast on subprocess error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STORM-87?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14049143#comment-14049143 ] ASF GitHub Bot commented on STORM-87: ------------------------------------- Github user revans2 commented on a diff in the pull request: https://github.com/apache/incubator-storm/pull/46#discussion_r14420063 --- Diff: storm-core/src/jvm/backtype/storm/task/ShellBolt.java --- @@ -241,5 +241,8 @@ private void handleEmit(Map action) throws InterruptedException { private void die(Throwable exception) { _exception = exception; + LOG.info("Halting process: ShellBolt died.", exception); + _collector.reportError(exception); + Runtime.getRuntime().halt(11); --- End diff -- Now that we have ways of cleanly handling System.exit, can we switch over to that instead of Runtime.halt? > ShellBolt shoud fail fast on subprocess error > --------------------------------------------- > > Key: STORM-87 > URL: https://issues.apache.org/jira/browse/STORM-87 > Project: Apache Storm (Incubating) > Issue Type: Bug > Reporter: James Xu > Priority: Minor > > https://github.com/nathanmarz/storm/issues/542 > Now ShellBolt.die() just save the catched exception and throw it in next execute() call. If a tuple cause subprocess fail and next tuple received after some time, the ShellBolt will fail until next tuple. It maybe more useful to exit immediately in die(). -- This message was sent by Atlassian JIRA (v6.2#6252)