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

Topic validation during the creation trigger unnecessary TopicChange events

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.0
    • Component/s: None
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: