-
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] Add missing configuration keys for caching catch-up reads #22295
[improve][broker] Add missing configuration keys for caching catch-up reads #22295
Conversation
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.
Do we need to update the default value here?
pulsar/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/ManagedLedgerConfig.java
Lines 86 to 87 in 0c9d860
private int minimumBacklogEntriesForCaching = 1000; | |
private int maxBacklogBetweenCursorsForCaching = 1000; |
pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java
Outdated
Show resolved
Hide resolved
pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java
Outdated
Show resolved
Hide resolved
There's a test that makes sure that the defaults match in broker.conf and ServiceConfiguration.java . The question about the difference was never replied in the original PR by @rdhabalia, so we just have to make a guess of a good default since the original PR has 2 set of values: in standalone.conf and in ServiceConfiguration.java. I'll revisit the changes in this PR so that I'll make the values match what is in ServiceConfiguration.java since that's what has been in use until now. |
… ServiceConfiguration.java
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
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #22295 +/- ##
============================================
+ Coverage 73.57% 73.63% +0.05%
+ Complexity 32624 32237 -387
============================================
Files 1877 1887 +10
Lines 139502 139453 -49
Branches 15299 15293 -6
============================================
+ Hits 102638 102682 +44
+ Misses 28908 28808 -100
- Partials 7956 7963 +7
Flags with carried forward coverage won't be shown. Click here to find out more. |
Before we get the response from @rdhabalia , we'd better not merge this patch. |
@Technoboy- Why? This PR isn't doing anything harmful. We can always revisit later. |
… reads (apache#22295) (cherry picked from commit 2803ba2) (cherry picked from commit fde7c49)
… reads (apache#22295) (cherry picked from commit 2803ba2) (cherry picked from commit fde7c49)
… reads (apache#22295) (cherry picked from commit 2803ba2) (cherry picked from commit fde7c49)
… reads (apache#22295) (cherry picked from commit 2803ba2) (cherry picked from commit fde7c49)
… reads (apache#22295) (cherry picked from commit 2803ba2) (cherry picked from commit fde7c49)
Motivation
PR #12258 added support for caching catch-up reads. However, the PR missed adding the configuration keys to
broker.conf
.Modifications
standalone.conf
.standalone.conf
weren't the same as the defaults in ServerConfiguration. This was raised in a comment on PR #12258, but that wasn't addressed.Documentation
doc
doc-required
doc-not-needed
doc-complete