Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Had issue with Kafka producer when running test one #2

Open
RBRNFRVR opened this issue Oct 9, 2024 · 4 comments
Open

Had issue with Kafka producer when running test one #2

RBRNFRVR opened this issue Oct 9, 2024 · 4 comments

Comments

@RBRNFRVR
Copy link

RBRNFRVR commented Oct 9, 2024

had in issue with the bean running in test one, did some searching and found out that this specific error can be fixed by just adding
general: kafka-topic: transaction-topic

in the application.yml

Though not covered it could have been a mistake so to anyone that has the same issue after adding all the dependencies properly this is the fix that helped me. Also to any of the engineers who worked on this project(Yes Josiah I am talking about you) correct me if I am wrong if this wasn't the correct way to do it and there is a more proper way, first time working with spring boot so any advice would be very much appreciated. Also thank you to all the engineers that worked on this project its really fun.

Update: yeah the kafka topic in application.yml was accidently not added, in task two you discuss on how its already added but it seems the github it was missing or ignored, (didn't look into why) please update so no one else struggles like I did when the first task failed originally failed.

@edisonfreire
Copy link

I had this same issue in task 2, it seems that application.yml was empty from the beginning.

@saulyez
Copy link

saulyez commented Oct 16, 2024

applications.yml is empty when you fork it from the repo (I assume this must be an error). What helped me to get the tasks running is configuring the kafka producer and adding a Kafka-topic.

E.g
spring:
kafka:
producer:
bootstrap-servers: localhost:9092
key-serializer: org.apache.kafka.common.serialization.StringSerializer
value-serializer: org.apache.kafka.common.serialization.StringSerializer
general:
kafka-topic: your_topic_name

@sonderistic-boop
Copy link

In the second task however, the kafka topic is already meant to be defined. It's also empty in the original repository regardless

@JerioSoares60
Copy link

yes just add
general.kafka-topic: transaction-topic
in the application.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants