Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-13743

kraft controller should prevent topics with conflicting metrics names from being created

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0
    • None

    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

          Activity

            People

              dengziming Deng Ziming
              cmccabe Colin McCabe
              Colin McCabe Colin McCabe
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: