Return-Path: X-Original-To: apmail-flink-dev-archive@www.apache.org Delivered-To: apmail-flink-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 416A9113DC for ; Thu, 10 Jul 2014 13:34:29 +0000 (UTC) Received: (qmail 80535 invoked by uid 500); 10 Jul 2014 13:34:29 -0000 Delivered-To: apmail-flink-dev-archive@flink.apache.org Received: (qmail 80486 invoked by uid 500); 10 Jul 2014 13:34:29 -0000 Mailing-List: contact dev-help@flink.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.incubator.apache.org Delivered-To: mailing list dev@flink.incubator.apache.org Received: (qmail 80468 invoked by uid 99); 10 Jul 2014 13:34:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2014 13:34:29 +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; Thu, 10 Jul 2014 13:34:30 +0000 Received: (qmail 78731 invoked by uid 99); 10 Jul 2014 13:34:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2014 13:34:05 +0000 Date: Thu, 10 Jul 2014 13:34:05 +0000 (UTC) From: "Gyula Fora (JIRA)" To: dev@flink.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FLINK-1021) IllegalStateException at InputGate 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 Gyula Fora created FLINK-1021: --------------------------------- Summary: IllegalStateException at InputGate Key: FLINK-1021 URL: https://issues.apache.org/jira/browse/FLINK-1021 Project: Flink Issue Type: Bug Components: Local Runtime Affects Versions: 0.6-incubating Environment: Linux/Windows Reporter: Gyula Fora Until now, after every emit to the outputs we flushed them using the .flush() method of the recordwriter. Now we removed this flush() call and we have two interesting observations: First of all we dont send enough records the source finishes but the output buffer never gets flushed. Secondly if we generate a simple datastream from lets say the first 1500 numbers we get an exception in the InputGates (after lets say a hundred records): java.lang.IllegalStateException: Channel received an event before completing the current partial record. java.lang.IllegalStateException: Channel received an event before completing the current partial record. at eu.stratosphere.runtime.io.channels.InputChannel.readRecord(InputChannel.java:177) at eu.stratosphere.runtime.io.gates.InputGate.readRecord(InputGate.java:173) at eu.stratosphere.streaming.api.streamcomponent.StreamRecordReader.hasNext(StreamRecordReader.java:96) at eu.stratosphere.streaming.api.streamcomponent.AbstractStreamComponent.invokeRecords(AbstractStreamComponent.java:255) at eu.stratosphere.streaming.api.streamcomponent.StreamSink.invoke(StreamSink.java:74) at eu.stratosphere.nephele.execution.RuntimeEnvironment.run(RuntimeEnvironment.java:260) at java.lang.Thread.run(Unknown Source) To produce the error run this test: https://github.com/stratosphere/stratosphere-streaming/blob/output-flush/stratosphere-streaming-core/src/test/java/eu/stratosphere/streaming/api/PrintTest.java Please note that this is the output-flush branch in Stratoshpere-streaming This works perfectly if we flush the outputs after the emits. -- This message was sent by Atlassian JIRA (v6.2#6252)