Improve backlogSize stats in the topic. (#6700)
### Motivation When all subscriptions have no backlogs, but the backlog size of the topic stats is not 0. So this PR improves the backlog size calculation of the managed ledger. ### Modifications If all entries are consumed, return the ledger size as the consumed size. ### Verifying this change A new unit test added. (cherry picked from commit d72e383b)
Showing
想要评论请 注册 或 登录