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

   ## Description
   
   This PR adds a shared `FileUtils.createLink(..., fallBackToCopy)` helper and 
uses it in compaction-related file linking paths.
   
   When hard-link creation is unsupported or fails, these paths now fall back 
to copying the source file instead of failing immediately.
   
   ## Changes
   
   - Add a `FileUtils.createLink(Path, Path, boolean)` helper with optional 
copy fallback.
   - Use the helper in compaction target preparation paths.
   - Use the helper when linking TsFile resources and modification files.
   
   ## Validation
   
   - Searched compaction-related code paths for remaining direct 
`Files.createLink` calls.
   - No compile, test, or formatting checks were run, per repository/user 
instruction.
   


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