-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
[Bug]: skip-host-cache option removed in latest MySQL 8.3.0 version #8130
Comments
I am also seeing this behaviour: |
Running into this as well. The release note of 8.0.30 does mention the deprecation of the parameter:
But indeed nothing about the actual removal in the 8.3.0 release notes. |
This PR seems to be related: docker-library/mysql#1002 They replaced |
This is a workaround that seems to work for me:
After that, tests work again. |
My current workaround is to use mysql 8.2.0 specifically in my application-test.yml file (this is for the unit testing of a Spring Boot application): |
Currently 8.3 doesn’t work due to testcontainers/testcontainers-java#8130
* Remove use of deprecated (removed in 8.3) MySQL config option * Update MySQL default images to latest - 5.6 went EOL in Feb 2021. Stop testing against it. - 5.7 went EOL in Oct 2023. Retain tests for a bit, but stop using it as the default. - 8.0.34+ is now LTS rather than rolling - use this as the default for most tests - Add 8.3.0 as a candidate "innovation" version which will eventually become LTS * Updates various docs to use 8.0 in the examples rather than EOL 5.7. * Update MariaDB images to latest 10.3 patch release Fixes #8130 --------- Co-authored-by: Eddú Meléndez <[email protected]>
Module
MySQL
Testcontainers version
1.19.3
Using the latest Testcontainers version?
Yes
Host OS
Linux
Host Arch
x86
Docker version
What happened?
The latest mysql contanier 8.3.0 does not work anymore with testcontainers. It complains about an unknown config option - '--skip-host-cache'.
Tests with previous versions work fines. I don't see mention of any change to this config parameter in the 8.3.0 release notes though.
Failed Job - https://github.com/eclipse-xpanse/xpanse/actions/runs/7579264089/job/20643575357?pr=1264
Config - https://github.com/testcontainers/testcontainers-java/blob/main/modules/mysql/src/main/resources/mysql-default-conf/my.cnf#L14
Relevant log output
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: