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

DefaultCocsumerTemplate is not allowing to set the custom ExceptionHandler

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.25.0
    • Fix Version/s: 3.x
    • Component/s: camel-kafka
    • Labels:
      None
    • Estimated Complexity:
      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

            • Assignee:
              Unassigned
              Reporter:
              sanojit Sanojit Nayak

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment