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 274A5200BC1 for ; Wed, 16 Nov 2016 08:50:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 25D51160B13; Wed, 16 Nov 2016 07:50:00 +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 6D5EE160B03 for ; Wed, 16 Nov 2016 08:49:59 +0100 (CET) Received: (qmail 30387 invoked by uid 500); 16 Nov 2016 07:49:58 -0000 Mailing-List: contact dev-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 dev@flink.apache.org Received: (qmail 30364 invoked by uid 99); 16 Nov 2016 07:49:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Nov 2016 07:49:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 516D82C0088 for ; Wed, 16 Nov 2016 07:49:58 +0000 (UTC) Date: Wed, 16 Nov 2016 07:49:58 +0000 (UTC) From: "Boris Osipov (JIRA)" To: dev@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FLINK-5077) testStreamTableSink falls unstable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 16 Nov 2016 07:50:00 -0000 Boris Osipov created FLINK-5077: ----------------------------------- Summary: testStreamTableSink falls unstable Key: FLINK-5077 URL: https://issues.apache.org/jira/browse/FLINK-5077 Project: Flink Issue Type: Bug Components: Table API & SQL Affects Versions: 1.1.4 Reporter: Boris Osipov I've faced with several fails TableSinkITCase.testStreamTableSink test. {code} Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 16.938 sec <<< FAILURE! - in org.apache.flink.api.scala.stream.TableSinkITCase testStreamTableSink(org.apache.flink.api.scala.stream.TableSinkITCase) Time elapsed: 10.534 sec <<< FAILURE! java.lang.AssertionError: Different number of lines in expected and obtained result. expected:<8> but was:<4> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:834) at org.junit.Assert.assertEquals(Assert.java:645) at org.apache.flink.test.util.TestBaseUtils.compareResultsByLinesInMemory(TestBaseUtils.java:316) at org.apache.flink.test.util.TestBaseUtils.compareResultsByLinesInMemory(TestBaseUtils.java:302) at org.apache.flink.api.scala.stream.TableSinkITCase.testStreamTableSink(TableSinkITCase.scala:61) {code} I made small research. I added additional StreamITCase.StringSink {code} val results = input.toTable(tEnv, 'a, 'b, 'c) .where('a < 5 || 'a > 17) .select('c, 'b) results.writeToSink(new CsvTableSink(path)) results.toDataStream[Row] .addSink(new StreamITCase.StringSink) {code} and logging. I've ran test several times and I got following resuts in log on fail: {noformat} ---------- Actual CsvTableSink: Comment#13,6 Comment#14,6 Comment#15,6 Hello world, how are you?,3 Hello world,2 Hi,1 ---------- Stream sink: Comment#12,6 Comment#13,6 Comment#14,6 Comment#15,6 Hello world, how are you?,3 Hello world,2 Hello,2 Hi,1 ---------- Expected result: Comment#12,6 Comment#13,6 Comment#14,6 Comment#15,6 Hello world, how are you?,3 Hello world,2 Hello,2 Hi,1 {noformat} Looks like writing to cvs works wrong. -- This message was sent by Atlassian JIRA (v6.3.4#6332)