shuwenwei opened a new pull request, #18083: URL: https://github.com/apache/iotdb/pull/18083
## Description Backport of #18045 to `dev/1.3`. 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. - Replace remaining compaction hard-link calls with the helper, including recovery tests. ## Verification - Searched compaction sources/tests for remaining `Files.createLink` / `createHardlink` usage; none remain. - Compile/build checks were not run per 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]
