Closed duckdeer closed 5 months ago
If you can prepare a minimal reproducer I can take a look, even with both channels connected to the same broker.
Yes. We need a reproducer.
I've created a little example and here everything works as expected. Started 2 Kafka brokers in a docker environment and was able to consume from both without problems.
Hence I expect that the issue is somewhere on the Kafka side. I'll do further analysis here.
From my point of view this issue can be closed.
I'm using Smallrye-Kafka in my Quarkus application for connecting to kafka. Until now the requirement was "having a single bootstrap-server which is valid for all channels". The configuration and event consuming worked without problems. This requirement changed and now I'm trying to configure the target broker per channel.
I've configured my
application.properties
and was able to connect to different brokers per topic. The startup log shows a successful connection to my different brokers without any errors. The correct topics are also mentioned in the log, so everything looks perfect. But the problem is, that no events are consumed from the topics. When I include some error in the configuration, the connection fails on startup. So I'm sure that my configuration is read and the connection to my brokers are established correctly.My application.properties contains some some config options which are valid for all channels. Beside that there are two topics which are referencing to a
kafka-configuration
option which is mentioned in the official documentation. I'm using the same consumer-group for both topics by purpose. There are multiple cluster-nodes of my application where each node uses a different consumer-group.My code is shown below:
Does somebody have a hint for me what's missing in the configuration so that no events are consumed from by brokers?