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 2019411689 for ; Wed, 21 May 2014 19:47:01 +0000 (UTC) Received: (qmail 86509 invoked by uid 500); 21 May 2014 19:47:01 -0000 Delivered-To: apmail-streams-dev-archive@streams.apache.org Received: (qmail 86466 invoked by uid 500); 21 May 2014 19:47:01 -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 86458 invoked by uid 99); 21 May 2014 19:47:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 May 2014 19:47:01 +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; Wed, 21 May 2014 19:46:59 +0000 Received: (qmail 85388 invoked by uid 99); 21 May 2014 19:46:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 May 2014 19:46:39 +0000 Date: Wed, 21 May 2014 19:46:39 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: dev@streams.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (STREAMS-80) StreamsProcressorTask and StreamsPersistWriterTask are BROKEN MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STREAMS-80?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14005142#comment-14005142 ] ASF GitHub Bot commented on STREAMS-80: --------------------------------------- Github user smashew commented on the pull request: https://github.com/apache/incubator-streams/pull/15#issuecomment-43804858 In the runtime environments, save LocalStreamsBuilder everything should be run as a thread in a thread monitor, which can then be checked to see if there is an active queue. Then we should document that the 'writeDatum' method is already threaded and the user shouldn't thread the call further. Or at least know that it is tracking the method 'writeDatum' to establish that it's effort is completed. (see my fork for a reference implementation of exactly this) > StreamsProcressorTask and StreamsPersistWriterTask are BROKEN > ------------------------------------------------------------- > > Key: STREAMS-80 > URL: https://issues.apache.org/jira/browse/STREAMS-80 > Project: Streams > Issue Type: Bug > Reporter: Ryan Ebanks > Priority: Critical > Original Estimate: 0.5h > Remaining Estimate: 0.5h > > A recent commit seems to have introduced this. Its a simple fix, but the while statement on line 70 of StreamsProviderTask should read > while(this.keepRunning.get() || datum != null) { > And line 75 in StreamsPersist writer task should read > while(this.keepRunning.get() || datum != null) { > Both lines are missing the datum != null statement. This causes tasks to be shutdown before data is processed and data is orphaned in the stream. In the worst case only the provider runs. -- This message was sent by Atlassian JIRA (v6.2#6252)