-
Notifications
You must be signed in to change notification settings - Fork 40.7k
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
Upgrade to Testcontainers 1.20.2 #42670
Comments
Unfortunately, the upgrade missed several key points. Cassandra and Kafka containers have moved with a deprecation, but they don't share any common ancestors. As a result, if we move our support to the non-deprecated version, then the deprecated version no longer works (i.e. The other problem is that the difference between the deprecated
cc @eddumelendez for visibility. |
Hi @snicoll, thanks for sharing. I have raised testcontainers/testcontainers-java#9410 Thanks for adapting the project to support the new implementations and sorry for the unexpected issues. |
Thanks Eddu. FTR Kafka also has unexpected issues. The new container implementation doesn't behave the same way. So it looks like users have to use the deprecated version initially and then look at the differences. I wonder if the Javadoc of the deprecated containers could be adapted. I can create an issue if you prefer? |
Kafka is a little bit different. org.testcontainers.containers.KafkaContainer has three modes to start (embedded zookeeper, external zookeeper and raft or zookeeperless) and the default one is embedded zookeeper. ConfluentKafkaContainer is not a full replacement of the previous one, it just supports raft mode which starts with tag 7.4.0. The smoke test for SSL was using the embedded zookeeper but could switch to kraft mode using Testcontainers Kafka documentation mentions the minimum version to use with Confluent but the javadoc miss it. I will update this. As always your feedback is very welcome. |
No description provided.
The text was updated successfully, but these errors were encountered: