You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Stephan Ewen (JIRA)" <ji...@apache.org> on 2017/02/16 10:26:41 UTC

[jira] [Commented] (FLINK-5817) Fix test concurrent execution failure by test dir conflicts.

    [ 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:

{code}
@Rule
public final TemporaryFolder tmp = new TemporaryFolder();
{code}

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
(v6.3.15#6346)