[ 
https://issues.apache.org/jira/browse/KAFKA-9498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17045071#comment-17045071
 ] 

ASF GitHub Bot commented on KAFKA-9498:
---------------------------------------

junrao commented on pull request #8062: KAFKA-9498; Topic validation during the 
topic creation triggers unnecessary TopicChange events
URL: https://github.com/apache/kafka/pull/8062
 
 
   
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Topic validation during the creation trigger unnecessary TopicChange events 
> ----------------------------------------------------------------------------
>
>                 Key: KAFKA-9498
>                 URL: https://issues.apache.org/jira/browse/KAFKA-9498
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: David Jacot
>            Assignee: David Jacot
>            Priority: Major
>
> 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.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to