pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [pulsar] tuteng opened a new issue #5724: [pulsar-broker]Support batch authorization of partitioned topic
Date Fri, 22 Nov 2019 14:26:29 GMT
tuteng opened a new issue #5724: [pulsar-broker]Support batch authorization of partitioned
topic
URL: https://github.com/apache/pulsar/issues/5724
 
 
   
   At present, if a topic is a partition topic, the sub-partition topic below it is not authorized
when grant it, resulting in an error in connection creation. So if the topic is found to be
a partition topic when authorizing or canceling permissions, all parittioned topic should
be authorized.
   
   Implement similar `pulsar-admin topics skip` https://github.com/apache/pulsar/blob/master/pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/PersistentTopicsBase.java#L935
   
   1. Check topic type by `getPartitionedTopicMetadata`
   2. Non artitioned topic, the current logic remains unchanged.
   3. Parittioned topic, authorize each topic through the for loop.
   4. Add unit test

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message