HTHou opened a new pull request, #1499:
URL: https://github.com/apache/ratis/pull/1499

   ## What changed
   
   - Added `RatisFileDestroyer`, a pluggable hook for file deletion and 
truncation.
   - Routed `FileUtils` delete, delete-if-exists, recursive delete, 
delete-on-exit, and truncate operations through the hook.
   - Updated Ratis cleanup bypasses for atomic temp abort, zero-size log 
segment cleanup, storage lock delete-on-exit, snapshot temp cleanup, and 
buffered log truncation.
   - Added a `TestFileUtils` coverage case to verify a custom destroyer is 
invoked.
   
   ## Why
   
   Downstream projects embedding Ratis may need Ratis-managed log, snapshot, 
metadata, and temporary files to use the same compliant file destruction policy 
as the rest of their storage layer. The default implementation preserves the 
current filesystem delete/truncate behavior.
   
   ## Tests
   
   - `git diff --cached --check`
   - `javac` incremental compile for changed `ratis-common` sources
   - `javac` incremental compile for changed `ratis-server` sources
   - `javac` incremental compile for updated `TestFileUtils`
   


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