Repository navigation
[fix] [client] call redeliver 1 msg but did 2 msgs - #23943
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #23943 +/- ##
============================================
+ Coverage 73.57% 74.25% +0.68%
+ Complexity 32624 2375 -30249
============================================
Files 1877 1853 -24
Lines 139502 143735 +4233
Branches 15299 16334 +1035
============================================
+ Hits 102638 106730 +4092
+ Misses 28908 28596 -312
- Partials 7956 8409 +453
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
(cherry picked from commit 7a79c78)
(cherry picked from commit 7a79c78)
(cherry picked from commit 7a79c78)
(cherry picked from commit 7a79c78)
|
@poorbarcode Could you fix the build error on the branch-3.0? This import is not used. |
| @DataProvider | ||
| public Object[][] enabledBatchSend() { | ||
| return new Object[][] { | ||
| {false}, |
There was a problem hiding this comment.
When it's false, even without this change, testBatchMessageNAck could still pass
There was a problem hiding this comment.
Yes, it only affects bacthed messages
|
|
||
| // Negative ack and verify result/ | ||
| Message<byte[]> receive1 = consumer.receive(); | ||
| consumer.pause(); |
There was a problem hiding this comment.
It's meaningless here. pause() should only affect the message listener
There was a problem hiding this comment.
In the Java client, pause() will pause sending new permits, so it's not specific to message listener.
pulsar/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java
Lines 1867 to 1880 in 1220951
There was a problem hiding this comment.
pause is for stop receiving msgs from broker
Motivation
Issue: call redeliver
1message, but it will redeliver2messages, you can reproduce the issue by the new testtestBatchMessageNAckModifications
fix the bug
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: x