Colin McCabe created KAFKA-13743:
------------------------------------
Summary: kraft controller should prevent topics with conflicting
metrics names from being created
Key: KAFKA-13743
URL: https://issues.apache.org/jira/browse/KAFKA-13743
Project: Kafka
Issue Type: Bug
Reporter: Colin McCabe
The kraft controller should prevent topics with conflicting metrics names from
being created, like the zk code does.
Example:
{code}
[cmccabe@zeratul kafka1]$ ./bin/kafka-topics.sh --create --topic f.oo
--bootstrap-server localhost:9092
WARNING: Due to limitations in metric names, topics with a period ('.') or
underscore ('_') could collide. To avoid issues it is best to use either, but
not both.
Created topic f.oo.
[cmccabe@zeratul kafka1]$ ./bin/kafka-topics.sh --create --topic f_oo
--bootstrap-server localhost:9092
WARNING: Due to limitations in metric names, topics with a period ('.') or
underscore ('_') could collide. To avoid issues it is best to use either, but
not both.
Error while executing topic command : Topic 'f_oo' collides with existing
topics: f.oo
[2022-03-15 09:48:49,563] ERROR
org.apache.kafka.common.errors.InvalidTopicException: Topic 'f_oo' collides
with existing topics: f.oo
(kafka.admin.TopicCommand$)
{code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)