Return-Path: X-Original-To: apmail-streams-dev-archive@minotaur.apache.org Delivered-To: apmail-streams-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 B270E11099 for ; Tue, 6 May 2014 00:43:26 +0000 (UTC) Received: (qmail 38231 invoked by uid 500); 6 May 2014 00:43:26 -0000 Delivered-To: apmail-streams-dev-archive@streams.apache.org Received: (qmail 38176 invoked by uid 500); 6 May 2014 00:43:25 -0000 Mailing-List: contact dev-help@streams.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@streams.incubator.apache.org Delivered-To: mailing list dev@streams.incubator.apache.org Received: (qmail 38165 invoked by uid 99); 6 May 2014 00:43:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 May 2014 00:43:25 +0000 X-ASF-Spam-Status: No, hits=-2000.7 required=5.0 tests=ALL_TRUSTED,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, 06 May 2014 00:43:25 +0000 Received: (qmail 37987 invoked by uid 99); 6 May 2014 00:43:01 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 May 2014 00:43:01 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id EA64392051A; Tue, 6 May 2014 00:43:00 +0000 (UTC) From: smashew To: dev@streams.incubator.apache.org Reply-To: dev@streams.incubator.apache.org References: In-Reply-To: Subject: [GitHub] incubator-streams pull request: Twitter Modificaitons Content-Type: text/plain Message-Id: <20140506004300.EA64392051A@tyr.zones.apache.org> Date: Tue, 6 May 2014 00:43:00 +0000 (UTC) X-Virus-Checked: Checked by ClamAV on apache.org Github user smashew commented on a diff in the pull request: https://github.com/apache/incubator-streams/pull/8#discussion_r12307454 --- Diff: streams-runtimes/streams-runtime-local/src/main/java/org/apache/streams/local/tasks/StatusCounterMonitorRunnable.java --- @@ -0,0 +1,6 @@ +package org.apache.streams.local.tasks; + +public interface StatusCounterMonitorRunnable extends Runnable { --- End diff -- I think that it does, right now, the monitor thread doesn't shutdown properly because of the way that it is being tracked. This behavior is largely invisible because it would have to be run in debug mode for it to be immediately apparent. IMHO, anything that can be run as a thread against in LocalStreamsBuilder that has a while(this.isRunning) { } loop, should have an interface that allows them to be terminated generically. Otherwise, it is possible to miss the destruction of it. With that style of loop, even through references are terminated, it will continue to run unless the flag is set and it can escape the function. --- 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. ---