Description
The kraft controller should prevent topics with conflicting metrics names from being created, like the zk code does.
Example:
[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$)
Attachments
Issue Links
- links to