-
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][broker] Fix the wrong value of BrokerSrevice.maxUnackedMsgsPerDispatcher #21765
Conversation
@aloyszhang Please add the following content to your PR description and select a checkbox:
|
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
Outdated
Show resolved
Hide resolved
Codecov ReportAll 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.
|
@Technoboy- @codelipenghui @poorbarcode |
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java
Outdated
Show resolved
Hide resolved
…esPerSubscriptionOnBrokerBlocked
@315157973 @Technoboy- Apply the comment, PTAL again. |
…ispatcher (apache#21765) (cherry picked from commit d3dee51)
…ispatcher (apache#21765) (cherry picked from commit d3dee51)
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
maxUnackedMessagesPerSubscriptionOnBrokerBlocked
which is 0.16 now.For example, if set
maxUnackedMessagesPerBroker
to 60000, theBrokerService#maxUnackedMsgsPerDispatcher
should 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
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository:
aloyszhang#22