[fix][broker] Fix the wrong value of BrokerSrevice.maxUnackedMsgsPerDispatcher#21765
Merged
Conversation
|
@aloyszhang Please add the following content to your PR description and select a checkbox: |
Technoboy-
reviewed
Dec 20, 2023
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #21765 +/- ##
============================================
+ Coverage 73.43% 73.54% +0.10%
+ Complexity 32798 32288 -510
============================================
Files 1897 1858 -39
Lines 140647 138146 -2501
Branches 15489 15141 -348
============================================
- Hits 103290 101605 -1685
+ Misses 29283 28674 -609
+ Partials 8074 7867 -207
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Contributor
Author
|
@Technoboy- @codelipenghui @poorbarcode |
315157973
reviewed
Jan 2, 2024
…esPerSubscriptionOnBrokerBlocked
Contributor
Author
|
@315157973 @Technoboy- Apply the comment, PTAL again. |
Technoboy-
approved these changes
Jan 3, 2024
poorbarcode
approved these changes
Jan 5, 2024
codelipenghui
approved these changes
Jan 5, 2024
Technoboy-
pushed a commit
that referenced
this pull request
Jan 5, 2024
Technoboy-
pushed a commit
that referenced
this pull request
Jan 16, 2024
Technoboy-
pushed a commit
that referenced
this pull request
Jan 16, 2024
Technoboy-
pushed a commit
that referenced
this pull request
Jan 22, 2024
Technoboy-
pushed a commit
that referenced
this pull request
Jan 22, 2024
nodece
pushed a commit
to nodece/pulsar
that referenced
this pull request
Feb 23, 2024
mukesh-ctds
pushed a commit
to datastax/pulsar
that referenced
this pull request
Mar 1, 2024
…ispatcher (apache#21765) (cherry picked from commit d3dee51)
mukesh-ctds
pushed a commit
to datastax/pulsar
that referenced
this pull request
Mar 6, 2024
…ispatcher (apache#21765) (cherry picked from commit d3dee51)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Pulsar has the limit of max unacked messages at
In the product environment(
maxUnackedMessagesPerBroker> 0), we met the subscription blocked unexpectedly even if we have set the limit of max un-ack for subscription and consumer big enough.After troubleshooting, this is caused by the wrong default value of
maxUnackedMessagesPerSubscriptionOnBrokerBlockedwhich is 0.16 now.For example, if set
maxUnackedMessagesPerBrokerto 60000, theBrokerService#maxUnackedMsgsPerDispatchershould be 60000 * 1/6 = 10000 by default, but now it's 600Modifications
Verifying this change
This change is already covered by existing tests, such as (please describe tests).
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository:
aloyszhang#22