[ 
https://issues.apache.org/jira/browse/KAFKA-13743?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

dengziming resolved KAFKA-13743.
--------------------------------
      Reviewer: Colin McCabe
    Resolution: Fixed

> 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
>            Assignee: dengziming
>            Priority: Major
>              Labels: kip-500
>             Fix For: 3.3.0
>
>
> 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)

Reply via email to