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 84295200BCC for ; Tue, 15 Nov 2016 06:48:03 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 82A72160B0D; Tue, 15 Nov 2016 05:48:03 +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 CBC42160B06 for ; Tue, 15 Nov 2016 06:48:02 +0100 (CET) Received: (qmail 45534 invoked by uid 500); 15 Nov 2016 05:48:02 -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 45523 invoked by uid 99); 15 Nov 2016 05:48:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2016 05:48:01 +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 8F8B01A06A9 for ; Tue, 15 Nov 2016 05:48:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -7.019 X-Spam-Level: X-Spam-Status: No, score=-7.019 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id hTYsfUkOde7i for ; Tue, 15 Nov 2016 05:48:00 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 70D555FC8E for ; Tue, 15 Nov 2016 05:48:00 +0000 (UTC) Received: (qmail 45071 invoked by uid 99); 15 Nov 2016 05:48:00 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2016 05:48:00 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B7CA12C0059 for ; Tue, 15 Nov 2016 05:47:59 +0000 (UTC) Date: Tue, 15 Nov 2016 05:47:59 +0000 (UTC) From: "Tushar Gosavi (JIRA)" To: dev@apex.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (APEXCORE-294) Graceful application shutdown MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 15 Nov 2016 05:48:03 -0000 [ https://issues.apache.org/jira/browse/APEXCORE-294?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15666190#comment-15666190 ] Tushar Gosavi commented on APEXCORE-294: ---------------------------------------- would sending END_STREAM tuple from all input operators partition will work. Is there any other complication with this approach? If this approach is fine I would start working on it. The flow would be - Master receives shutdown command from cli/rest api - Master set shutdown on each container and send it as part of heartbeat response to all containers - On receiving shutdown command StreamingContainer would mark alive false for all InputNode causing them to terminate with sending END_STREAM tuple downstream. same could be achieve using operatorRequest for all input operator partition and this request will be handled by StreamingContainer to shutdown the input operator thread. > Graceful application shutdown > ----------------------------- > > Key: APEXCORE-294 > URL: https://issues.apache.org/jira/browse/APEXCORE-294 > Project: Apache Apex Core > Issue Type: Improvement > Reporter: Thomas Weise > > By injecting the end stream tuple into input operators, to replace the current mechanism of forced operator undeploy. -- This message was sent by Atlassian JIRA (v6.3.4#6332)