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

KafkaConsumer swallows exceptions from org.apache.kafka.clients.consumer.KafkaConsumer constructor

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.20.0
    • 2.20.2, 2.21.0
    • camel-kafka
    • None
    • Unknown

    Description

      When an exception is thrown by the org.apache.kafka.clients.consumer.KafkaConsumer constructor when instantiated by the KafkaConsumer inner class KafkaFetchRecords, the exception is not logged, nor propagated. This can happen, for example, if the key or the value deserializer class names are incorrect, or the class is not found by the class loader.

      I would expect the exception here should cause the endpoint to fail initializing, or at a minimum, the exception should be logged. The fact that nothing is logged and the route is started without any apparent error, is misleading and very hard to troubleshoot.

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              lexsoto Alex Soto
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: