-
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
[improve] [broker] Avoid PersistentSubscription.expireMessages
logic check backlog twice.
#20416
[improve] [broker] Avoid PersistentSubscription.expireMessages
logic check backlog twice.
#20416
Conversation
PersistentSubscription.expireMessages
logic check backlog twice.
LGTM |
Please add the link of PR in forked repository, thanks |
Codecov Report
@@ Coverage Diff @@
## master #20416 +/- ##
============================================
+ Coverage 72.90% 72.93% +0.02%
- Complexity 31864 31897 +33
============================================
Files 1864 1864
Lines 138416 138416
Branches 15188 15188
============================================
+ Hits 100919 100954 +35
+ Misses 29477 29458 -19
+ Partials 8020 8004 -16
Flags with carried forward coverage won't be shown. Click here to find out more.
|
…c check backlog twice. (apache#20416)
…c check backlog twice. (#20416)
As discussed on the mailing list https://lists.apache.org/thread/w4jzk27qhtosgsz7l9bmhf1t7o9mxjhp, there is no plan to release 2.9.6, so I am going to remove the release/2.9.6 label |
…c check backlog twice. (#20416)
…c check backlog twice. (apache#20416) (cherry picked from commit c9eb6bd)
Motivation
PersistentSubscription.expireMessages
will first backlog is zero and if not will check if backlog is below threshold.those two check should be save in variable to avoid check twice.
Modifications
save backlog to variable.
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: