-
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][client] fix retry topic with exclusive mode. #23859
[fix][client] fix retry topic with exclusive mode. #23859
Conversation
And i have a question: why delayed message do not support exclusive type? is it a task that can't be implemented? or a pending task? |
@thetumbled This question has been asked multiple times before and I didn't search for previous answers. I think that one of the reasons is that the semantics of delayed messages hasn't been defined and designed with Failover or Exclusive type. |
I agree with the complexity of the dispatcher. It is too complicate to master this module and it is hard to guarantee that there is nothing wrong when a seemingly good pr is merged. |
PATL, thanks. @lhotari @BewareMyPower @poorbarcode @dao-jun @codelipenghui @nodece |
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerBuilderImpl.java
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #23859 +/- ##
============================================
+ Coverage 73.57% 74.19% +0.61%
+ Complexity 32624 31892 -732
============================================
Files 1877 1853 -24
Lines 139502 143872 +4370
Branches 15299 16350 +1051
============================================
+ Hits 102638 106740 +4102
+ Misses 28908 28739 -169
- Partials 7956 8393 +437
Flags with carried forward coverage won't be shown. Click here to find out more.
|
(cherry picked from commit 5a59ab7)
(cherry picked from commit 5a59ab7)
(cherry picked from commit 5a59ab7)
Motivation
reconsumeLater
for a message, this message will be produce as a delayed message to the corresponding retry topic.Based on the analysis above, we can come to the conclusion that the consumer of the retry topic must be shared/key-shared.
Modifications
Restrict the subscription type of the retry topic to be shared.
Verifying this change
(Please pick either of the following options)
This change added tests and can be verified as follows:
(example:)
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: