Zakelly commented on code in PR #25818:
URL: https://github.com/apache/flink/pull/25818#discussion_r1901438187


##########
flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/fs/ForStFlinkFileSystem.java:
##########
@@ -223,7 +223,10 @@ public URI getUri() {
     public boolean exists(final Path f) throws IOException {
         FileMappingManager.RealPath realPath = fileMappingManager.realPath(f);
         if (realPath == null) {
-            return delegateFS.exists(f);
+            if (delegateFS.exists(f)) {
+                return delegateFS.getFileStatus(f).isDir();
+            }
+            return false;

Review Comment:
   ```suggestion
               return delegateFS.exists(f) && 
delegateFS.getFileStatus(f).isDir();
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to