-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[improve][admin] Add counter for marker messages in PersistentTopics.analyzeSubscriptionBacklog() rest api #25091
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
base: master
Are you sure you want to change the base?
[improve][admin] Add counter for marker messages in PersistentTopics.analyzeSubscriptionBacklog() rest api #25091
Conversation
|
@oneby-wang Please add the following content to your PR description and select a checkbox: |
6478918 to
31340e1
Compare
… replicator analyzeSubscriptionBacklog test
72bdea7 to
0fda5ba
Compare
...broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentSubscription.java
Outdated
Show resolved
Hide resolved
lhotari
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
/pulsarbot rerun-failure-checks |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #25091 +/- ##
=============================================
+ Coverage 39.20% 74.47% +35.27%
- Complexity 13498 33675 +20177
=============================================
Files 1842 1899 +57
Lines 145491 149660 +4169
Branches 16907 17394 +487
=============================================
+ Hits 57038 111465 +54427
+ Misses 80844 29315 -51529
- Partials 7609 8880 +1271
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
Since uncommitted or aborted messages will not be delivered to consumer, counting them into The aborted messages is filtered by pulsar/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/AbstractBaseDispatcher.java Lines 199 to 206 in 4495525
The uncommitted messages will not be read and delivered before committed. pulsar/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java Lines 4789 to 4791 in 4495525
Maybe we should modify pulsar/managed-ledger/src/main/java/org/apache/bookkeeper/mledger/impl/OpScan.java Lines 129 to 132 in 4495525
@lhotari WDYT? |
I agree that it would be useful to have a separate counter for such transactional messages that are part of aborted transactions. For the transaction markers themselves, it's useful to have them part of marker messages. |
|
/pulsarbot rerun-failure-checks |
Fixes #25082
Motivation
PersistentTopics.analyzeSubscriptionBacklog()rest api returns the counters of backlog, but the counters don't return the amount of marker messages.Modifications
Add counter for marker messages in
PersistentTopics.analyzeSubscriptionBacklog()rest api, add tests.Verifying this change
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: oneby-wang#15