Return-Path: X-Original-To: apmail-flink-issues-archive@minotaur.apache.org Delivered-To: apmail-flink-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 15E6610807 for ; Wed, 26 Aug 2015 15:24:58 +0000 (UTC) Received: (qmail 14795 invoked by uid 500); 26 Aug 2015 15:24:54 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 14751 invoked by uid 500); 26 Aug 2015 15:24:54 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 14722 invoked by uid 99); 26 Aug 2015 15:24:54 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Aug 2015 15:24:54 +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 650C81AAE6C for ; Wed, 26 Aug 2015 15:24:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.005 X-Spam-Level: X-Spam-Status: No, score=-0.005 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.006, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Hj0f0nkVSzMh for ; Wed, 26 Aug 2015 15:24:41 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id 99655506DD for ; Wed, 26 Aug 2015 15:24:40 +0000 (UTC) Received: (qmail 8829 invoked by uid 99); 26 Aug 2015 15:24:40 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Aug 2015 15:24:40 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 1FB9CE046A; Wed, 26 Aug 2015 15:24:40 +0000 (UTC) From: mjsax To: issues@flink.incubator.apache.org Reply-To: issues@flink.incubator.apache.org References: In-Reply-To: Subject: [GitHub] flink pull request: [FLINK-2111] Add "stop" signal to cleanly shut... Content-Type: text/plain Message-Id: <20150826152440.1FB9CE046A@git1-us-west.apache.org> Date: Wed, 26 Aug 2015 15:24:40 +0000 (UTC) Github user mjsax commented on a diff in the pull request: https://github.com/apache/flink/pull/750#discussion_r37995477 --- Diff: flink-contrib/flink-storm-compatibility/flink-storm-compatibility-examples/src/main/java/org/apache/flink/stormcompatibility/wordcount/StormWordCountLocal.java --- @@ -67,8 +67,10 @@ public static void main(final String[] args) throws Exception { Utils.sleep(10 * 1000); - // TODO kill does no do anything so far cluster.killTopology(topologyId); + // killing sends STOP signal, takes some time to clean up + Utils.sleep(1000); --- End diff -- I want to preserve Storm semantics, which is "send kill signal an hope for the best". So I implemented "Stop" signal the same way. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---