zerolbsony opened a new pull request, #18349:
URL: https://github.com/apache/iotdb/pull/18349

   This PR updates file deletion and truncation operations to use 
NIO.2-compatible APIs so configured FileSystemProvider implementations can 
intercept these file operations.
   Changes include:
   Replacing direct File.delete() usage with Files.delete(...) / 
Files.deleteIfExists(...).
   Adding FileUtils.truncateFile(...) based on FileChannel.open(Path, ...).
   Replacing truncation paths that used 
FileOutputStream#getChannel().truncate(...).
   Adding a GitHub Actions diff check to block newly introduced non-NIO.2 file 
APIs in Java changes.
   This allows downstream integrations to control deletion/truncation behavior 
through NIO.2 providers while keeping existing behavior unchanged for the 
default local filesystem.


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