commit | af419cccba9a945b407018e2e2962a5680d38219 | [log] [tgz] |
---|---|---|
author | lifepuzzlefun <wjl_is_213@163.com> | Mon Jan 08 18:26:05 2024 +0800 |
committer | GitHub <noreply@github.com> | Mon Jan 08 18:26:05 2024 +0800 |
tree | bc57f8b5e478b955b3742056e111ad53227d73a2 | |
parent | 13e7efaa971cd3613b065ac50836c5ee98985d13 [diff] |
Try to use jdk api to create hardlink when rename file when compaction. (#3876) ### Motivation Current HardLink will create a process to execute mv like command to rename file in compaction logic. maybe we can just use jdk api to do this with lower overhead. see javadoc: https://docs.oracle.com/javase/7/docs/api/java/nio/file/Files.html#createLink(java.nio.file.Path,%20java.nio.file.Path) ### Changes test if `Files.createLink` is available in hardlink static code block. if test fails means `Files.createLink` is not available. else will use `Files.createLink` when call createHardlink
Apache BookKeeper is a scalable, fault-tolerant and low latency storage service optimized for append-only workloads.
It is suitable for being used in following scenarios:
Please visit the Documentation from the project website for more information.
For filing bugs, suggesting improvements, or requesting new features, help us out by opening a GitHub issue.
Subscribe or mail the user@bookkeeper.apache.org list - Ask questions, find answers, and also help other users.
Subscribe or mail the dev@bookkeeper.apache.org list - Join development discussions, propose new ideas and connect with contributors.
Join us on Slack - This is the most immediate way to connect with Apache BookKeeper committers and contributors.
We feel that a welcoming open community is important and welcome contributions.
See our installation guide to get your local environment setup.
Take a look at our open issues: GitHub Issues.
Review our coding style and follow our pull requests to learn more about our conventions.
Make your changes according to our contributing guide