Github user yanghua commented on a diff in the pull request:

    https://github.com/apache/flink/pull/6243#discussion_r199992317
  
    --- Diff: 
flink-core/src/main/java/org/apache/flink/core/fs/local/LocalFileSystem.java ---
    @@ -254,7 +254,7 @@ else if (file.exists() && !file.isDirectory()) {
                }
                else {
                        File parent = file.getParentFile();
    -                   return (parent == null || mkdirsInternal(parent)) && 
file.mkdir();
    +                   return (parent == null || mkdirsInternal(parent)) && 
(file.mkdir() || file.isDirectory());
    --- End diff --
    
    seems you are right, maybe Till want to prevent concurrent problem? like 
the above code comment : check file exist first. cc @tillrohrmann 


---

Reply via email to