Closed loicgreffier closed 11 months ago
I think I have the same issue, but I don't think this is caused by Testcontainers. I am building a plugin for multiple version of Kafka and only 1 of those version fails (the code is the same except for the Kafka version) : https://github.com/ImFlog/schema-registry-plugin/actions/runs/4028717990/jobs/6925891503 I am looking if I can find something that would have changed on Confluent images side but without success for now. Maybe we could open an issue on their repository ?
It would be great if more context is shared, like the kafka client setup. Wonder if https://github.com/testcontainers/testcontainers-java/issues/3899#issuecomment-854774201 is related
I've added some examples using SASL with JAAS. See https://github.com/testcontainers/testcontainers-java/pull/7763
Module
Kafka
Testcontainers version
1.17.6
Using the latest Testcontainers version?
Yes
Host OS
Windows (WSL2)
Host Arch
x64
Docker version
What happened?
I run a Kafka broker that requires SASL_PLAIN authentication in my integration tests.
After upgrading from testcontainers v1.15.3 to v1.17.6, the broker is not starting anymore.
Relevant log output
Additional Information
As you can see, the Kafka broker is failing on :
I think this is due to the kafka-configs command run in the containerIsStarted method of the KafkaContainer class.
As this command is not authenticated (my broker requires it), it fails and throws an IllegalStateException that prevents the broker from starting.