Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
3.7.3, 3.10.0
-
None
-
Unknown
Description
If a KafkaConfiguration is used (see code) and no topic is defined in the configuration, the parameter from the URI is not taken over, but a null value is set.
This leads to a consumer not having a valid topic name, but null being provided as a value.
It looks like setProperties(endpoint, parameters); overrites the topic.
KafkaConfiguration
@Bean public KafkaConfiguration kafkaConfig() { KafkaConfiguration kafkaConfiguration = new KafkaConfiguration(); kafkaConfiguration.setBrokers(..); kafkaConfiguration.setClientId(..); //kafkaConfiguration.setTopic(kafkaTopic); return kafkaConfiguration ;
Route
from(kafka({{topic.name}}?configuration=#kafkaConfig"))
Attachments
Issue Links
- links to