You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Matthias J. Sax (JIRA)" <ji...@apache.org> on 2015/06/16 14:24:00 UTC

[jira] [Comment Edited] (FLINK-2232) StormWordCountLocalITCase fails

    [ https://issues.apache.org/jira/browse/FLINK-2232?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14587778#comment-14587778 ] 

Matthias J. Sax edited comment on FLINK-2232 at 6/16/15 12:23 PM:
------------------------------------------------------------------

Hi, I guess, it is a "timing problem". The driver program sleep for (I think 5 seconds) and shuts down the program afterwards. Locally, the actual work is done in less than a second, so I increased the waiting time to make sure to program completes the work. Maybe on travis, 5 seconds are not large enough (if travis workload is high) to get the work done, and thus the program is shut down before any result is written to the file... Increasing the sleeping time should work (however, there might still be some instability left -- like always if your test relies on timing). An increased sleeping time, increases testing time, too... But I guess, it's the only "valid" fix. I know that it is ugly if a test might fails due to timing problems. However, this is how Storm works unfortunately and the layer only adapts to this behavior.


was (Author: mjsax):
Hi, I guess, it is a "timing problem". The driver program sleep for (I think 5 seconds) and shuts down the program afterwards. Locally, the actual work is done in less than a second, so I increased the waiting time to make sure to program completes the work. Maybe on travis, 5 seconds are not large enough (if travis workload is high) to get the work done, and thus the program is shut down before any result is written to the file... Increasing the sleeping time should work (however, there might still be some instability left -- like always if your test relies on timing).

> StormWordCountLocalITCase fails
> -------------------------------
>
>                 Key: FLINK-2232
>                 URL: https://issues.apache.org/jira/browse/FLINK-2232
>             Project: Flink
>          Issue Type: Bug
>          Components: Streaming, Tests
>    Affects Versions: master
>            Reporter: Ufuk Celebi
>            Priority: Minor
>
> https://travis-ci.org/apache/flink/jobs/66936476
>  
> {code}
> StormWordCountLocalITCase>StreamingProgramTestBase.testJobWithoutObjectReuse:109->postSubmit:40->TestBaseUtils.compareResultsByLinesInMemory:256->TestBaseUtils.compareResultsByLinesInMemory:270 Different number of lines in expected and obtained result. expected:<801> but was:<0>
> {code}
> Can we disable the test until this is fixed?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)