KAFKA-10212: Describing a topic with the TopicCommand fails if unauthorised to...
KAFKA-10212: Describing a topic with the TopicCommand fails if unauthorised to use ListPartitionReassignments API Since https://issues.apache.org/jira/browse/KAFKA-8834, describing topics with the TopicCommand requires privileges to use ListPartitionReassignments or fails to describe the topics with the following error: > Error while executing topic command : Cluster authorization failed. This is a quite hard restriction has most of the secure clusters do not authorize non admin members to access ListPartitionReassignments. This patch catches the `ClusterAuthorizationException` exception and gracefully fails back. We already do this when the API is not available so it remains consistent. Reviewers: Manikumar Reddy <manikumar.reddy@gmail.com>
显示
- clients/src/test/java/org/apache/kafka/clients/admin/AdminClientTestUtils.java 35 个添加, 0 个删除.../org/apache/kafka/clients/admin/AdminClientTestUtils.java
- core/src/main/scala/kafka/admin/TopicCommand.scala 5 个添加, 5 个删除core/src/main/scala/kafka/admin/TopicCommand.scala
- core/src/test/scala/unit/kafka/admin/TopicCommandWithAdminClientTest.scala 25 个添加, 0 个删除...la/unit/kafka/admin/TopicCommandWithAdminClientTest.scala
想要评论请 注册 或 登录