zhangyue19921010 opened a new issue, #11335:
URL: https://github.com/apache/paimon/issues/11335

   ### Search before asking
   
   - [x] I searched the issues and found no matching report for filesystem 
table deletion.
   
   ### Paimon version
   
   2.2-SNAPSHOT, master at `61f9981bc3b265da12446bf48eb0db441fb2da86`.
   
   ### Compute Engine
   
   Java Catalog API, JDK 11, local filesystem as an unprivileged user.
   
   ### Minimal reproduce step
   
   Create an ordinary append table through `FileSystemCatalog`. Make its 
`schema` directory readable but not writable (POSIX permissions `r-xr-xr-x`), 
then call `catalog.dropTable(identifier, false)`.
   
   `LocalFileIO` cannot remove the schema file and returns `false` from 
recursive deletion. The catalog call nevertheless returns normally, and the 
table can still be loaded. Restore the directory permissions after the 
reproduction.
   
   ### What doesn't meet your expectations?
   
   The failed drop should be reported to the caller. 
`FileSystemCatalog.dropTableImpl` ignores the deletion result for both the 
table directory and configured external directories. Existing `IOException` 
failures already propagate.
   
   ### Anything else?
   
   Check whether a directory remains when deletion returns `false`, and report 
that failure. A directory that another operation has already removed should 
still be accepted. A failed table-directory deletion should stop before 
external-directory cleanup.
   
   ### Are you willing to submit a PR?
   
   - [x] I'm willing to submit a PR!
   


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