[fix][broker] Fix incorrect blockedConsumerOnUnackedMsgs value when maxUnackedMessagesPerConsumer is 1 - #23796
Conversation
lhotari
left a comment
There was a problem hiding this comment.
Good catch! I have one question in a comment.
|
@summeriiii It looks like ZkSessionExpireTest.testTopicUnloadAfterSessionRebuild fails with this change. I haven't checked why, but that test has failed multiple times. |
|
/pulsarbot run-failure-checks |
…axUnackedMessagesPerConsumer is 1
2f2589e to
b97df18
Compare
|
@summeriiii I was able to reproduce the failure by running the test in Docker with the scripts available at https://github.com/lhotari/pulsar-contributor-toolbox/blob/master/functions/pulsar-contributor-toolbox-functions.sh git fetch origin pull/23796/merge
git checkout FETCH_HEAD
ptbx_run_test_in_docker -pl pulsar-broker test -Dtest=ZkSessionExpireTestIt's hard to see the reason why it would be caused by this PR. Before the failure, I could see this output |
|
previous attempts https://github.com/apache/pulsar/actions/runs/12556467839 . Downloading logs to see if it's similar as what I see locally. |
|
The test has been flaky for a longer period of time: #23389 |
|
The same ZkSessionExpireTest.testTopicUnloadAfterSessionRebuild test fails also in branch-4.0 builds. Let's continue addressing it in #23389 . |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #23796 +/- ##
============================================
+ Coverage 73.57% 74.30% +0.73%
+ Complexity 32624 31907 -717
============================================
Files 1877 1853 -24
Lines 139502 143829 +4327
Branches 15299 16337 +1038
============================================
+ Hits 102638 106872 +4234
+ Misses 28908 28578 -330
- Partials 7956 8379 +423
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
…axUnackedMessagesPerConsumer is 1 (apache#23796) (cherry picked from commit 5443c69) (cherry picked from commit b098772)
…axUnackedMessagesPerConsumer is 1 (apache#23796) (cherry picked from commit 5443c69) (cherry picked from commit d6a2554)
…axUnackedMessagesPerConsumer is 1 (apache#23796) (cherry picked from commit 5443c69) (cherry picked from commit b098772)
Fixes #22657
Motivation
This issue was introduced by #20990. After we call Consumer#addAndGetUnAckedMsgs to change the unackedMessages, we should check and may update blockedConsumerOnUnackedMsgs.
Modifications
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: