Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17367

Kafka endpoint DSL for producer doesn't strip //

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      I'm trying something like this

      .toD(
      {{ kafka("my-topic")}}
      {{ .brokers("kafka.brokers")}}
      {{ .partitioner(org.apache.kafka.clients.producer.RoundRobinPartitioner.class.getName())}}
      {{ .valueSerializer(ByteArraySerializer.class.getName()))}}

      and I get this error

      Metadata response reported invalid topics //my-topic

      This is because parseTopicName in KafkaSendDynamicAware is unaware of the // in the uri.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            Iapetus999 Andrew Rosenberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: