MarvinCai opened a new pull request #9302:
URL: https://github.com/apache/pulsar/pull/9302
Fixes #9254
### Motivation
Add ability to fetch backlog size for subscription, add flag in topic-stats
partitioned-topic-stats for getting backlog size for subscriptions.
### Modifications
In ManagedLedgerImpl add API to get backlog size starting from specific
position.
In Admin Rest API and CLI add option to get subscription backlog.
### Verifying this change
- [ ] Make sure that the change passes the CI checks.
This change added tests and can be verified as follows:
Added check in existing test to verify backlog size.
### Does this pull request potentially affect one of the following parts:
- Dependencies (does it add or upgrade a dependency): no
- The public API: yes (added option to get subscription's backlog size
when getting topic-stats/partitioned-topic-stats)
- The schema: no
- The default values of configurations: no
- The wire protocol: no
- The rest endpoints: no
- The admin cli options: yes (added option to get subscription's backlog
size when getting topic-stats/partitioned-topic-stats)
- Anything that affects deployment: no
### Documentation
- Does this pull request introduce a new feature? yes
- If yes, how is the feature documented? docs / JavaDocs
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]