diqiu50 commented on code in PR #6160:
URL: https://github.com/apache/gravitino/pull/6160#discussion_r1910019455


##########
clients/filesystem-fuse/src/default_raw_filesystem.rs:
##########
@@ -334,13 +334,21 @@ impl<T: PathFileSystem> RawFileSystem for 
DefaultRawFileSystem<T> {
         file.flush().await
     }
 
-    async fn close_file(&self, _file_id: u64, fh: u64) -> Result<()> {
+    async fn close_file(&self, file_id: u64, fh: u64) -> Result<()> {
+        let file_entry = self.get_file_entry(file_id).await;

Review Comment:
   Yes, closing deleted file may cause bugs.
   This fix is not good.  Add the todo comments  to handle that case.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to