[ 
https://issues.apache.org/jira/browse/FLINK-7104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

mingleizhang reassigned FLINK-7104:
-----------------------------------

    Assignee: mingleizhang

> AccessDeniedException get when FileUtilsTest#testDeleteDirectoryConcurrently 
> call
> ---------------------------------------------------------------------------------
>
>                 Key: FLINK-7104
>                 URL: https://issues.apache.org/jira/browse/FLINK-7104
>             Project: Flink
>          Issue Type: Bug
>          Components: Build System, Core, Tests
>            Reporter: mingleizhang
>            Assignee: mingleizhang
>            Priority: Critical
>
> Actually, the dir of {{junit2471804890898765737}} had already not existed 
> anymore. But the program still access it. Then, cause build and test failure. 
> The reason for this issue is that when one of the threads deletes the 
> generated file, the other thread still continues to delete the file that had 
> been deleted, thats leading to AccessDeniedException.
> {code:java}
> java.nio.file.AccessDeniedException: 
> D:\Users\rice.zhang\AppData\Local\Temp\junit2471804890898765737\junit7630178798271244089\018f436fbebbe13597ea323f72953d27\31c397e4e80ebaf0d1809c96ddc3a25b\29aab6838e71db153c456b2da5b541b7\6abf9809045c5fc61c09e33369144e94
>       at 
> sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
>       at 
> sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
>       at 
> sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
>       at 
> sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:269)
>       at 
> sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
>       at java.nio.file.Files.delete(Files.java:1126)
>       at 
> org.apache.flink.util.FileUtils.deleteFileOrDirectory(FileUtils.java:115)
>       at org.apache.flink.util.FileUtils.cleanDirectory(FileUtils.java:219)
>       at org.apache.flink.util.FileUtils.deleteDirectory(FileUtils.java:144)
>       at 
> org.apache.flink.util.FileUtils.deleteFileOrDirectory(FileUtils.java:111)
>       at org.apache.flink.util.FileUtils.cleanDirectory(FileUtils.java:219)
>       at org.apache.flink.util.FileUtils.deleteDirectory(FileUtils.java:144)
>       at 
> org.apache.flink.util.FileUtils.deleteFileOrDirectory(FileUtils.java:111)
>       at org.apache.flink.util.FileUtils.cleanDirectory(FileUtils.java:219)
>       at org.apache.flink.util.FileUtils.deleteDirectory(FileUtils.java:144)
>       at 
> org.apache.flink.util.FileUtils.deleteFileOrDirectory(FileUtils.java:111)
>       at org.apache.flink.util.FileUtils.cleanDirectory(FileUtils.java:219)
>       at org.apache.flink.util.FileUtils.deleteDirectory(FileUtils.java:144)
>       at 
> org.apache.flink.util.FileUtilsTest$Deleter.go(FileUtilsTest.java:159)
>       at 
> org.apache.flink.core.testutils.CheckedThread.run(CheckedThread.java:74)
> {code}



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

Reply via email to