-
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
[fix] [ml] Fix cursor metadata compatability issue when switching the config unackedRangesOpenCacheSetEnabled #23759
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2243,6 +2243,10 @@ The max allowed delay for delayed delivery (in milliseconds). If the broker rece | |
+ " will only be tracked in memory and messages will be redelivered in case of" | ||
+ " crashes.") | ||
private int managedLedgerMaxUnackedRangesToPersist = 10000; | ||
@FieldContext( | ||
category = CATEGORY_STORAGE_ML, | ||
doc = "Whether persist cursor ack stats as long arrays, which will compress the data and reduce GC rate") | ||
private boolean managedLedgerPersistIndividualAckAsLongArray = false; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does change the existing Pulsar 4.0 behavior when this defaults to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, will rollback the default behavior to |
||
@FieldContext( | ||
category = CATEGORY_STORAGE_ML, | ||
doc = "If enabled, the maximum \"acknowledgment holes\" will not be limited and \"acknowledgment holes\" " | ||
|
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's better to move to the internal of the getPreviousPosition() method.
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.
getPreviousPosition
returns a meaningful position, in other words, it returns a position that exactly exists. And other methods rely on this feature, such as https://github.com/apache/pulsar/blob/master/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/ManagedLedgerImpl.java#L3621-L3623. Only cursor individual ack range does not allow crossing ledgers so far.