-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[improve][broker] Don't rollover empty ledgers based on inactivity #21893
[improve][broker] Don't rollover empty ledgers based on inactivity #21893
Conversation
@lifepuzzlefun Please review this since you worked on related change #20276 in this area. #21508 is also related. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is best to describe this case in the configuration document.
@coderzc The empty ledgers that get created will get deleted before this change. The user doesn't see them currently and nothing changes from the user's perspective. Documentation might not be needed in the configuration docs. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #21893 +/- ##
============================================
- Coverage 73.72% 73.57% -0.16%
+ Complexity 32405 32333 -72
============================================
Files 1859 1859
Lines 138273 138273
Branches 15158 15158
============================================
- Hits 101939 101731 -208
- Misses 28488 28657 +169
- Partials 7846 7885 +39
Flags with carried forward coverage won't be shown. Click here to find out more.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
well, maybe we can consider merging this logic into |
we can raise another new patch for this, I think. |
…21893) ### Motivation When `managedLedgerInactiveLedgerRolloverTimeSeconds` is set, let's say to `300` (5 minutes), the ledger will also get rolled in the case when no new entries (messages) were added to the ledger. This doesn't make sense. Empty ledgers are deleted, but having this extra churn is causing extra load on brokers, bookies, and metadata stores (zookeeper). ### Modifications Skip rolling the ledger if it is empty.
…21893) ### Motivation When `managedLedgerInactiveLedgerRolloverTimeSeconds` is set, let's say to `300` (5 minutes), the ledger will also get rolled in the case when no new entries (messages) were added to the ledger. This doesn't make sense. Empty ledgers are deleted, but having this extra churn is causing extra load on brokers, bookies, and metadata stores (zookeeper). ### Modifications Skip rolling the ledger if it is empty. (cherry picked from commit 49edc3d)
…21893) ### Motivation When `managedLedgerInactiveLedgerRolloverTimeSeconds` is set, let's say to `300` (5 minutes), the ledger will also get rolled in the case when no new entries (messages) were added to the ledger. This doesn't make sense. Empty ledgers are deleted, but having this extra churn is causing extra load on brokers, bookies, and metadata stores (zookeeper). ### Modifications Skip rolling the ledger if it is empty. (cherry picked from commit 49edc3d)
…pache#21893) ### Motivation When `managedLedgerInactiveLedgerRolloverTimeSeconds` is set, let's say to `300` (5 minutes), the ledger will also get rolled in the case when no new entries (messages) were added to the ledger. This doesn't make sense. Empty ledgers are deleted, but having this extra churn is causing extra load on brokers, bookies, and metadata stores (zookeeper). ### Modifications Skip rolling the ledger if it is empty. (cherry picked from commit 49edc3d) (cherry picked from commit 84a4885)
…pache#21893) ### Motivation When `managedLedgerInactiveLedgerRolloverTimeSeconds` is set, let's say to `300` (5 minutes), the ledger will also get rolled in the case when no new entries (messages) were added to the ledger. This doesn't make sense. Empty ledgers are deleted, but having this extra churn is causing extra load on brokers, bookies, and metadata stores (zookeeper). ### Modifications Skip rolling the ledger if it is empty. (cherry picked from commit 49edc3d) (cherry picked from commit 84a4885)
Motivation
When
managedLedgerInactiveLedgerRolloverTimeSeconds
is set, let's say to300
(5 minutes), the ledger will get rolled also in the case when no new entries (messages) were added to the ledger. This doesn't make sense.Empty ledgers are deleted, but having this extra churn is causing extra load on brokers, bookies and metadata store (zookeeper).
Modifications
Skip rolling the ledger if it is empty.
Documentation
doc
doc-required
doc-not-needed
doc-complete