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 94CC3200C02 for ; Fri, 20 Jan 2017 16:27:12 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 935AC160B48; Fri, 20 Jan 2017 15:27:12 +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 DCAC2160B39 for ; Fri, 20 Jan 2017 16:27:11 +0100 (CET) Received: (qmail 69044 invoked by uid 500); 20 Jan 2017 15:27:11 -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 69033 invoked by uid 99); 20 Jan 2017 15:27:11 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Jan 2017 15:27:11 +0000 Received: from mail-oi0-f50.google.com (mail-oi0-f50.google.com [209.85.218.50]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id C499A1A06AA for ; Fri, 20 Jan 2017 15:27:10 +0000 (UTC) Received: by mail-oi0-f50.google.com with SMTP id m124so44833282oif.1 for ; Fri, 20 Jan 2017 07:27:10 -0800 (PST) X-Gm-Message-State: AIkVDXK4dIEMnPzVbsbGRkpxnyawLC6UQw6WUa+wOTGPlSx4YlhPO2/PVTVKxSu01Th/tZauFpU1JPLYCVLi4g== X-Received: by 10.202.243.137 with SMTP id r131mr7565478oih.179.1484926029994; Fri, 20 Jan 2017 07:27:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.11.66 with HTTP; Fri, 20 Jan 2017 07:27:09 -0800 (PST) In-Reply-To: References: From: Thomas Weise Date: Fri, 20 Jan 2017 07:27:09 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: APEXCORE-294 Clean application shutdown To: dev@apex.apache.org Content-Type: multipart/alternative; boundary=94eb2c095f1c89261305468848f2 archived-at: Fri, 20 Jan 2017 15:27:12 -0000 --94eb2c095f1c89261305468848f2 Content-Type: text/plain; charset=UTF-8 As discussed please also look at appropriate user documentation and clarity WRT the CLI commands. Thanks, Thomas On Thu, Jan 19, 2017 at 10:46 PM, Tushar Gosavi wrote: > Hi Thomas, > > As discussed I will remote the old behaviour of shutdown. > > - Tushar. > > On Fri, Jan 20, 2017 at 10:03 AM, Tushar Gosavi > wrote: > > Hi Thomas, > > > > I agree with you on the current behavior. The effect of shutdown can > > be achieve with kill. I was more worried about backward compatibility > > issue > > while relaunching the shutdown app, hence kept the default as same as > > before (cli and rest api default). If we don't want to retain the > > relaunch > > behaviour of shutdown app then the code will be more simpler :). Let > > me know, I will update the PR accordinlgy. > > > > - Tushar. > > > > > > On Thu, Jan 19, 2017 at 9:22 PM, Thomas Weise wrote: > >> Tushar, > >> > >> I would like to see the use case for "hard shutdown" vs kill. The > current > >> shutdown behavior isn't useful, confusing and sometimes does not even > end > >> the app (based on feedback received in the past from users). I would > prefer > >> we don't retain it without clear understanding of use case and how it > will > >> really work. > >> > >> Thanks, > >> Thomas > >> > >> > >> On Wed, Jan 18, 2017 at 1:41 AM, Tushar Gosavi > >> wrote: > >> > >>> Dear Community, > >>> > >>> I have changed the implementaion plan based on PR comments. Following > >>> is the new proposal for this feature. > >>> > >>> https://docs.google.com/a/datatorrent.com/document/d/ > 1hSLH4xi_15OWwW4KY7-- > >>> LU3e2iHHhfthOpATicnC5eE/edit?usp=sharing > >>> > >>> Please provide the feedback. I will update the PR accrodinly. > >>> > >>> - Tushar. > >>> > >>> > >>> On Fri, Nov 25, 2016 at 4:40 PM, Tushar Gosavi > > >>> wrote: > >>> > Dear Community, > >>> > > >>> > I have open an pull request for shutting down application by sending > >>> > END_STREAM control tuples from all input operator. This is similar to > >>> > all input operator have stopped after raising ShutdownException. > >>> > > >>> > On receiving shutdown request, master will prepare OPERATOR_STOP > >>> > command for all input partitions, and send it to container as part of > >>> > heartbeat response to container. Container will shutdown the operator > >>> > thread after receiving this command. > >>> > > >>> > https://github.com/apache/apex-core/pull/424 > >>> > Please review. > >>> > > >>> > Thanks, > >>> > - Tushar. > >>> > --94eb2c095f1c89261305468848f2--