commit | 25264f997ef22d9f456a9b88832dfa6634927b60 | [log] [tgz] |
---|---|---|
author | Kevin Wilson <klwilson227@comcast.net> | Mon Apr 05 22:02:57 2021 -0600 |
committer | GitHub <noreply@github.com> | Tue Apr 06 12:02:57 2021 +0800 |
tree | 472810b91bc8662634e0f51b8db0decdcb89713a | |
parent | ae023fd5fab1f015229e475de106df46144bd4d0 [diff] |
Fix logic in Bookkeeper forceAllowCompaction to run only when force is set or configured interval (#2675) Without the attached fix, when forceAllowCompaction and isForceGCAllowWhenNoSpace are set. The majorCompaction runs with every garbage collection. This results due to the fact that enableMajorCompaction which takes a negative interval into account to disable compaction always returns true since the difference in time will always be larger than -1. The time check must be "and" with the enableMajorCompaciton for the time check to be valid. And the force flag may also be valid when the isForce(Major/Minor)CompactionAllow is set to true which will validate the threshold in the force case is set.
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 or opening an Apache jira.
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 Developer Setup to get your local environment setup.
Take a look at our open issues: JIRA Issues Github Issues.
Review our coding style and follow our pull requests to learn about our conventions.
Make your changes according to our contribution guide.