Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8116E200C3F for ; Wed, 22 Mar 2017 12:59:45 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 7FA93160B91; Wed, 22 Mar 2017 11:59:45 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C34C4160B83 for ; Wed, 22 Mar 2017 12:59:44 +0100 (CET) Received: (qmail 8111 invoked by uid 500); 22 Mar 2017 11:59:43 -0000 Mailing-List: contact dev-help@apex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apex.apache.org Delivered-To: mailing list dev@apex.apache.org Received: (qmail 8100 invoked by uid 99); 22 Mar 2017 11:59:43 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Mar 2017 11:59:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 5D010C1427 for ; Wed, 22 Mar 2017 11:59:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.349 X-Spam-Level: X-Spam-Status: No, score=-99.349 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id mk_mtPWYSU5E for ; Wed, 22 Mar 2017 11:59:42 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 8F0375FDA6 for ; Wed, 22 Mar 2017 11:59:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 0B370E05B1 for ; Wed, 22 Mar 2017 11:59:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 94FB8254D5 for ; Wed, 22 Mar 2017 11:59:41 +0000 (UTC) Date: Wed, 22 Mar 2017 11:59:41 +0000 (UTC) From: "Bhupesh Chawda (JIRA)" To: dev@apex.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (APEXCORE-678) Shutdown of application should start from input nodes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 22 Mar 2017 11:59:45 -0000 [ https://issues.apache.org/jira/browse/APEXCORE-678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bhupesh Chawda updated APEXCORE-678: ------------------------------------ Description: Streaming container calls shutdown() for all nodes instead of just input nodes. {code} private void stopInputNodes() { for (Entry> e : nodes.entrySet()) { Node node = e.getValue(); if (node instanceof InputNode) { final Thread thread = e.getValue().context.getThread(); if (thread == null || !thread.isAlive()) { continue; } } node.shutdown(true); } } {code} was: Streaming container calls shutdown() for all nodes instead of just input nodes. ``` private void stopInputNodes() { for (Entry> e : nodes.entrySet()) { Node node = e.getValue(); if (node instanceof InputNode) { final Thread thread = e.getValue().context.getThread(); if (thread == null || !thread.isAlive()) { continue; } } node.shutdown(true); } } ``` > Shutdown of application should start from input nodes > ----------------------------------------------------- > > Key: APEXCORE-678 > URL: https://issues.apache.org/jira/browse/APEXCORE-678 > Project: Apache Apex Core > Issue Type: Bug > Reporter: Bhupesh Chawda > Assignee: Bhupesh Chawda > > Streaming container calls shutdown() for all nodes instead of just input nodes. > {code} > private void stopInputNodes() > { > for (Entry> e : nodes.entrySet()) { > Node node = e.getValue(); > if (node instanceof InputNode) { > final Thread thread = e.getValue().context.getThread(); > if (thread == null || !thread.isAlive()) { > continue; > } > } > node.shutdown(true); > } > } > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)