yuruguo opened a new pull request #12850:
URL: https://github.com/apache/pulsar/pull/12850


   ### Motivation
   Currently, we can get the backlog size of a topic through `bin/pulsar-admin 
topics get-backlog-size tn1/ns1/tp1`, however I found that 
`PulsarAuthorizationProvider` lacks support for topic operation 
`GET_BACKLOG_SIZE` when verifying the role's authorization, code as below: 
   
https://github.com/apache/pulsar/blob/b99f75e8874532f5a1867741cbb85ca6a2187132/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java#L2767
   
https://github.com/apache/pulsar/blob/b99f75e8874532f5a1867741cbb85ca6a2187132/pulsar-broker-common/src/main/java/org/apache/pulsar/broker/authorization/PulsarAuthorizationProvider.java#L569-L599
   
   The purpose of this PR is to support role with `consume` topic authorization 
to `GET_BACKLOG_SIZE` of topic.
   
   ### Documentation 
   - [x] `no-need-doc` 
    


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to