Create app with smallrye-reactive-messaging-kafka and Kotlin #33153
-
I get some problems when running the following to create an app using Kafka Messaging and Kotlin:
When doing the same for Java, I get the starter code for both resteasy and kafka, and the example work OOTB. If I go ahead and copy MyReactiveMessagingApplication and convert it to Kotlin and include it in the Kotlin project, I see other issue when running ./gradlwe devQuarkus. These issues seems to come from Kafka and the container starts, perhaps in conjunction with some config issues:
My question I guess is what's wrong in the Kotlin case? :) I don't mind copying / creating my Kafka messaging code myself, but I can't seem to find what is wrong with the Kafka errors I see in the log. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
/cc @Ladicek (smallrye), @alesj (kafka), @cescoffier (kafka,reactive-messaging), @evanchooly (kotlin), @geoand (kotlin), @jmartisk (smallrye), @ozangunalp (kafka,reactive-messaging), @phillip-kruger (smallrye), @radcortez (smallrye) |
Beta Was this translation helpful? Give feedback.
-
I don't think the error you've cited is relevant. It is a retriable exception from Kafka producer and the send operation will be retried. It means that the producer couldn't get the partition metadata from the broker. I'll try it to see what's going on for that example in Kotlin. |
Beta Was this translation helpful? Give feedback.
-
@nmodinMerkle I just created a project with kotlin and reactive messaging kafka and tested this case. Everything seems to work well. You can change the dev service provider using |
Beta Was this translation helpful? Give feedback.
@nmodinMerkle I just created a project with kotlin and reactive messaging kafka and tested this case. Everything seems to work well.
I think the retriable exception you are seeing is caused by the redpanda image we are using as dev service. It happens when the topic is auto-created on produced record.
You can change the dev service provider using
quarkus.kafka.devservices.provider
property. You can choose betweenredpanda
(default),kafka-native
, orstrimzi
.