Kafka behaving differently depending on whether its run with ctrl+f5 or DistributedApplicationTestingBuilder #8594
Unanswered
Kylemiller995
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all,
I have the following app host config for kafka,
When running the app host from ide, my seed-data project is able to connect with kafka and seed my data, however when running from my integration test the seed data project is unable to connect:
Test code handling the DistributedApplicationTestingBuilder:
When running in the ctrl+f5 I notice that kafka.Resource.GetEndpoint("kafka") always resolves to localhost:9092, whereas when running with the DistributedApplicationTestingBuilder, the proxy port seems to be used instead. Oddly enough hard coding localhost:9092 when running DistributedApplicationTestingBuilder doesn't work and neither did dynamically registering KAFKA_ADVERTISED_LISTENERS to be the proxy endpoint e.g:
Any ideas on how I would get my DistributedApplicationTestingBuilder to behave the same way as running the app host with f5?
Beta Was this translation helpful? Give feedback.
All reactions