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

DefaultCocsumerTemplate is not allowing to set the custom ExceptionHandler

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 2.25.0
    • 3.x
    • camel-kafka
    • None
    • Unknown

    Description

      We are using org.apache.camel.DefaultConsumerTemplate.receive(String endpointUri, long timeout) to consume the messages from a Kafka topic.

      We are facing an issue, If we interrupt the current thread it is logging the exception by using “ org.apache.camel.util.CamelLogger”.

      Therefore we don’t get any handle to set the custom exception handler for the Default Consumer created by ConsumerTemplate.

      Exception Log :

      org.apache.camel.util.CamelLogger log
      WARNING: Interrupted while consuming RequestTopic-Thread 0 from kafka topic. Caused by: [org.apache.kafka.common.errors.InterruptException - java.lang.InterruptedException]
      org.apache.kafka.common.errors.InterruptException: java.lang.InterruptedException

      Attachments

        Activity

          People

            Unassigned Unassigned
            sanojit Sanojit Nayak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: