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

ASF GitHub Bot commented on FLINK-8200:
---------------------------------------

GitHub user wenlong88 opened a pull request:

    https://github.com/apache/flink/pull/5122

    [FLINK-8200] RocksDBAsyncSnapshotTest should use temp fold instead of fold 
with fixed name

    Using fixed folder in test makes test fail when different users run the 
test in the same machine. We should TemporaryFolder instead to avoid the 
conflicts and make the test folder be cleared automaticlly when execution 
finished.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/wenlong88/flink flink-8200

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/5122.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #5122
    
----
commit 6798f54291941300a1c0a57dbf9971d21e3a4422
Author: wenlong.lwl <wenlong....@alibaba-inc.com>
Date:   2017-12-05T07:16:32Z

    use TemporaryFolder instead of fixed folder in RocksDBAsyncSnapshotTest

----


> RocksDBAsyncSnapshotTest should use temp fold instead of fold with fixed name
> -----------------------------------------------------------------------------
>
>                 Key: FLINK-8200
>                 URL: https://issues.apache.org/jira/browse/FLINK-8200
>             Project: Flink
>          Issue Type: Bug
>            Reporter: Wenlong Lyu
>
> The following case failed when different user run the test in the same 
> machine.
> Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.226 sec <<< 
> FAILURE! - in 
> org.apache.flink.contrib.streaming.state.RocksDBAsyncSnapshotTest
> testCleanupOfSnapshotsInFailureCase(org.apache.flink.contrib.streaming.state.RocksDBAsyncSnapshotTest)
>   Time elapsed: 0.023 sec  <<< ERROR!
> java.io.IOException: No local storage directories available. Local DB files 
> directory 'file:/tmp/foobar' does not exist and cannot be created.
>     at 
> org.apache.flink.contrib.streaming.state.RocksDBStateBackend.lazyInitializeForJob(RocksDBStateBackend.java:251)
>     at 
> org.apache.flink.contrib.streaming.state.RocksDBStateBackend.createKeyedStateBackend(RocksDBStateBackend.java:300)
>     at 
> org.apache.flink.contrib.streaming.state.RocksDBAsyncSnapshotTest.testCleanupOfSnapshotsInFailureCase(RocksDBAsyncSnapshotTest.java:338)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to