flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-5546) java.io.tmpdir setted as project build directory in surefire plugin
Date Thu, 26 Jan 2017 03:16:26 GMT

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

ASF GitHub Bot commented on FLINK-5546:

Github user shijinkui commented on the issue:

    " /tmp/cacheFile (Permission denied)" exception of unit test can be replay.
    1. on linux env, `sudo - userA`, clone the flink code, start to `mvn clean test verify`
    2. on the linux machine, `sudo - userB`, clone the flink codebase, same start to `mvn
clean test verify`
    Because two use share the same  `/tmp` directory which have no random sub directory.
    IMO, `/tmp` change to `${project.build.directory}`, at same time have random suffix. This
can resolve the problem thoroughly.

> java.io.tmpdir setted as project build directory in surefire plugin
> -------------------------------------------------------------------
>                 Key: FLINK-5546
>                 URL: https://issues.apache.org/jira/browse/FLINK-5546
>             Project: Flink
>          Issue Type: Test
>    Affects Versions: 1.2.0, 1.3.0
>         Environment: CentOS 7.2
>            Reporter: Syinchwun Leo
>            Assignee: shijinkui
> When multiple Linux users run test at the same time, flink-runtime module may fail. User
A creates /tmp/cacheFile, and User B will have no permission to visit the fold.  
> Failed tests: 
> FileCacheDeleteValidationTest.setup:79 Error initializing the test: /tmp/cacheFile (Permission
> Tests in error: 
> IOManagerTest.channelEnumerator:54 ยป Runtime Could not create storage director...
> Tests run: 1385, Failures: 1, Errors: 1, Skipped: 8

This message was sent by Atlassian JIRA

View raw message