commit | f62a81dda4f1f782a3fc50067bbdffd5b6f438df | [log] [tgz] |
---|---|---|
author | ZhangJian He <shoothzj@gmail.com> | Sat Apr 20 08:13:58 2024 +0800 |
committer | GitHub <noreply@github.com> | Sat Apr 20 08:13:58 2024 +0800 |
tree | 4ebd03ec9c9de286b4f07174b6082b4cdc29012c | |
parent | 2b25f45e083ae8c925b06498e02dabaf3f36eaee [diff] |
improve: change scheduleAtFixedRate to scheduleWithFixedDelay in GarbageCollectorThread (#4296) ### Motivation Current scheduling mechanism for garbage collection uses scheduleAtFixedRate. This approach schedules the next execution without considering whether the current task has finished, potentially leading to overlapping executions if a task takes longer than expected. In my test environment, After task accumulation in gc thread pool, sometimes there is no entrylog to extract and no entrylogger to compact. But every round of gc, still need to compare ledger meta between local and metadata store (zk), which will result in highly frequently access to metadata store and each access will bring considerable unnecessary data flow. See https://lists.apache.org/thread/023vkc5rwyq0j776zcv8dtp7c8cml6vp Signed-off-by: ZhangJian He <shoothzj@gmail.com>
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