You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2018/01/03 11:25:00 UTC

[jira] [Resolved] (CAMEL-12110) KafkaConsumer swallows exceptions from org.apache.kafka.clients.consumer.KafkaConsumer constructor

     [ https://issues.apache.org/jira/browse/CAMEL-12110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-12110.
---------------------------------
    Resolution: Fixed

> KafkaConsumer swallows exceptions from org.apache.kafka.clients.consumer.KafkaConsumer constructor
> --------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-12110
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12110
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-kafka
>    Affects Versions: 2.20.0
>            Reporter: Alex Soto
>            Assignee: Claus Ibsen
>             Fix For: 2.20.2, 2.21.0
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)