You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/09/10 02:40:56 UTC

[GitHub] [pulsar] yebai1105 commented on issue #11876: 在topic层级进行produce、consume授权后,zk上的权限数据一直堆积无法被删除

yebai1105 commented on issue #11876:
URL: https://github.com/apache/pulsar/issues/11876#issuecomment-916586666


   我的pulsar版本2.7.2
   首先,我反馈的并不是topic层级授权能不能取消的的问题,我问题中的“权限数据堆积”指的是:凡是进行过授权的topic,其对应的权限json数据会一直保存在zk上,无论其具体权限是produce、consume还是为空。
   下面进行详细解释:
   1、第一个点:topic在授权之后,zk上保存了大量的权限json数据,即便在这个topic删除之后,这个权限数据都不会删除。在你的截图里面取消授权也只是将具体的topic对应的权限设置为空,但这个topic数据还保存在zk上,即便是topic被删除依旧无法得到清理,那么这样随着topic越来越多,zk上的数据就越来越大,这样在topic层级授权的就会收到限制。
   2、第二个点:可以尝试新建一个topic之后,然后再对这个topic进行授权比如授权prodece,这个时候再直接删除topic,那么zk上的topic对应的权限将不会改变依旧是produce,如果这个时候新建一个同名的topic进来,再进行授权,就会出现我上面截图中,如果这个topic分区比之前的小,那么一部分覆盖为新的授权,另一部分为老的授权,也许这里对于权限认证上影响不大,但是对于元数据维护层面这里具有很大的问题。
   


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org