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

Topic validation during the creation trigger unnecessary TopicChange events

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.6.0
    • None
    • None

    Description

      I have found out that the topic validation logic, which is executed when CreateTopicPolicy or when validateOnly is set, triggers unnecessary ChangeTopic events in the controller. In the worst case, it can trigger up to one event per created topic and leads to overloading the controller.

      This happens because the validation logic reads all the topics from ZK using the method getAllTopicsInCluster provided by the KafkaZKClient. This method registers a watch every time the topics are read from Zookeeper.

      I think that we should make the watch registration optional for this call in oder to avoid this unwanted behaviour.

       

      Attachments

        Issue Links

          Activity

            People

              dajac David Jacot
              dajac David Jacot
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: