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

leesf commented on FLINK-12071:
-------------------------------

It is difficult to reproduce errors in travis when running failed test cases 
locally. But we could add catch block to harden some failed tests. Just like 
below
{code:java}

try (final RecoverableFsDataOutputStream stream = writer.open(path)) {
    // code
} catch(IOException e) {
    throw e;
}
{code}
What do you think?[~till.rohrmann],[~Zentol]

> HadoopRecoverableWriterTest fails on Travis
> -------------------------------------------
>
>                 Key: FLINK-12071
>                 URL: https://issues.apache.org/jira/browse/FLINK-12071
>             Project: Flink
>          Issue Type: Bug
>          Components: FileSystems, Tests
>    Affects Versions: 1.9.0
>            Reporter: Chesnay Schepler
>            Assignee: leesf
>            Priority: Critical
>              Labels: test-stability
>
> https://travis-ci.org/apache/flink/jobs/513373067
> {code}
> testExceptionWritingAfterCloseForCommit(org.apache.flink.runtime.fs.hdfs.HadoopRecoverableWriterTest)
>   Time elapsed: 0.031 s  <<< ERROR!
> java.lang.Exception: Unexpected exception, expected<java.io.IOException> but 
> was<java.lang.IllegalArgumentException>
> Caused by: java.lang.IllegalArgumentException: Self-suppression not permitted
> Caused by: java.io.IOException: The stream is closed
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to