Replies: 1 comment
-
Also, while investigating this issue, I discovered that if a container is reused its (newly generated) default network alias is not a network alias of the running container. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I discovered that
kafka.KafkaContainer
is not reusable.As far as I can tell, it's because of the
configure()
method:testcontainers-java/modules/kafka/src/main/java/org/testcontainers/kafka/KafkaContainer.java
Line 70 in cb7a793
The value of
KAFKA_CONTROLLER_QUORUM_VOTERS
uses the random network alias generated byGenericContainer
's constructor.Is there a reason why it doesn't simply use
localhost
?Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions