Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-16865

Admin.describeTopics behavior change after KIP-966

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.8.0
    • 3.8.0, 3.9.0
    • admin, clients
    • None

    Description

      Running the following code produces different behavior between ZooKeeper and KRaft:

      DescribeTopicsOptions options = new DescribeTopicsOptions().includeAuthorizedOperations(false);
      TopicCollection topics = TopicCollection.ofTopicNames(Collections.singletonList(topic));
      DescribeTopicsResult describeTopicsResult = admin.describeTopics(topics, options);
      TopicDescription topicDescription = describeTopicsResult.topicNameValues().get(topic).get();
      System.out.println(topicDescription.authorizedOperations());
      

      With ZooKeeper this print null, and with KRaft it prints [ALTER, READ, DELETE, ALTER_CONFIGS, CREATE, DESCRIBE_CONFIGS, WRITE, DESCRIBE].

      The Admin.getTopicDescriptionFromDescribeTopicsResponseTopic does not take into account the options provided to describeTopics() and always populates the authorizedOperations field.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tinaselenge Gantigmaa Selenge
            mimaison Mickael Maison
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment