You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "David Jacot (Jira)" <ji...@apache.org> on 2020/02/03 14:06:00 UTC
[jira] [Created] (KAFKA-9498) Topic validation during the creation
trigger unnecessary TopicChange events
David Jacot created KAFKA-9498:
----------------------------------
Summary: 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
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)