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

KafkaProducer is force closed on karaf

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Cannot Reproduce
    • 3.0.0-M2
    • None
    • camel-kafka
    • None
    • Unknown

    Description

      Hi guys,

      We are working on transport project that based on karaf, camel, kafka and etc.

      Recently we bumped into a bug that doesn't allow keep on it. I debugged it and saw that the "sender" is always force-closed.

      I will try to explain to reproduce it by simple example:

      1) We use a following blueprint:

       

      <?xml version="1.0" encoding="UTF-8"?>
      <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="
      http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
      
      <camelContext xmlns="http://camel.apache.org/schema/blueprint">
      
      <route id="DirectToKafka">
      <from uri="timer://foo?fixedRate=true&amp;period=5000"/>
      <setBody>
      <simple>Hello from Karaf Camel!</simple>
      </setBody>
      <log message="${in.body}"/>
      <setHeader headerName="kafka.PARTITION_KEY">
      <simple>0</simple>
      </setHeader>
      <setHeader headerName="kafka.KEY">
      <simple>1</simple>
      </setHeader>
      <to uri="kafka:myTopic?brokers=localhost:9092"/>
      <log message="${headers}"/>
      </route>
      </camelContext>
      
      </blueprint>
      

       2) The issue log is attached ("issue.log")

       

      Could you please provide some information to fix the issue?

       

      Thank you.

      Attachments

        1. karaf-kafka-producer.zip
          3 kB
          Federico Valeri
        2. karaf.log
          78 kB
          Yeldar
        3. karaf-camel-kafka.xml
          1.0 kB
          Yeldar
        4. issue.log
          5 kB
          Yeldar

        Activity

          People

            Unassigned Unassigned
            turtle Yeldar
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: