flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephan Ewen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-5817) Fix test concurrent execution failure by test dir conflicts.
Date Thu, 16 Feb 2017 10:26:41 GMT

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

Stephan Ewen commented on FLINK-5817:

I would encourage you to use the JUnit tool to create random temporary folders:

public final TemporaryFolder tmp = new TemporaryFolder();

Have a look at the {{org.apache.flink.util.FileUtilsTest}} for an example.

> Fix test concurrent execution failure by test dir conflicts.
> ------------------------------------------------------------
>                 Key: FLINK-5817
>                 URL: https://issues.apache.org/jira/browse/FLINK-5817
>             Project: Flink
>          Issue Type: Bug
>            Reporter: Wenlong Lyu
>            Assignee: Wenlong Lyu
> Currently when different users build flink on the same machine, failure may happen because
some test utilities create test file using the fixed name, which will cause file access failing
when different user processing the same file at the same time.
> We have found errors from AbstractTestBase, IOManagerTest, FileCacheTest.

This message was sent by Atlassian JIRA

View raw message