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/01 09:48:08 UTC

[GitHub] [pulsar] yebai1105 opened a new issue #11876: 在topic层级进行produce、consume授权后无法被删除

yebai1105 opened a new issue #11876:
URL: https://github.com/apache/pulsar/issues/11876


   **Describe the bug**
   在topic层级进行过生产或者消费授权之后,无论是否取消权限或者直接删除topic,在zk上的数据都一直存在,除了删除namespace否则无法删除
   
   **To Reproduce**
   1、使用topic删除依旧无法删除zk上的权限数据,见截图一、截图二
   2、如果新增一个topic之后再删除,并再次新增了一个同名的topic并进行授权,那么以前的策略不会有新增的策略冲突吗?
   图三:先增了一个topic5有100个分区,授予consume权限,之后删除topic5,再新增topic5有5个分区,授予produce、consume权限,这个时候如图三所示,topic5的分区0-4显示拥有produce、consume权限,而分区5-99显示consume权限。
   
   
   **Screenshots**
   图一:![image](https://user-images.githubusercontent.com/43256848/131649332-49870621-b23f-483b-a428-0668ef91ee36.png)
   图二:![image](https://user-images.githubusercontent.com/43256848/131649347-093d9c7c-1a29-4683-8072-e65ca9411a86.png)
   图三:![image](https://user-images.githubusercontent.com/43256848/131649220-5c697879-5f6f-4711-9e4c-7d2e2f581e99.png)
   
   
   
   


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



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

Posted by GitBox <gi...@apache.org>.
codelipenghui closed issue #11876:
URL: https://github.com/apache/pulsar/issues/11876


   


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



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

Posted by GitBox <gi...@apache.org>.
yebai1105 edited a comment on issue #11876:
URL: https://github.com/apache/pulsar/issues/11876#issuecomment-916586666


   我的pulsar版本2.7.8
   首先,我反馈的并不是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



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

Posted by GitBox <gi...@apache.org>.
LeBW commented on issue #11876:
URL: https://github.com/apache/pulsar/issues/11876#issuecomment-916014345


   我在复现过程中,在 revoke permission 之后,zk 中的确删掉了相关权限。
   ![image](https://user-images.githubusercontent.com/18557164/132679902-e548a423-d7ee-49fa-ad01-21d06eba1960.png)
   可以提供下使用的各组件版本吗?


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



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

Posted by GitBox <gi...@apache.org>.
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