masteryhx commented on code in PR #26497:
URL: https://github.com/apache/flink/pull/26497#discussion_r2055495613


##########
flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/fs/ForStFlinkFileSystem.java:
##########
@@ -305,7 +306,8 @@ public synchronized FileStatus getFileStatus(Path path) 
throws IOException {
         if (mappingEntry == null) {
             return new FileStatusWrapper(delegateFS.getFileStatus(path), path);
         }
-        if (FileOwnershipDecider.shouldAlwaysBeLocal(path)) {
+        if (FileOwnershipDecider.shouldAlwaysBeLocal(path)
+                && mappingEntry.getFileOwnership() != FileOwnership.NOT_OWNED) 
{

Review Comment:
   I just put the judgement into the new method of `shouldAlwaysBeLocal`.
   The NOT_ONWED sst file will always on the remote, so it should not be local.
   The file ownership always exists expect new created file or restored file 
which will be determined by the file format like '.sst'



-- 
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