Skip to content
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

Pin version of MariaDB for DB migrations #1213

Merged

Conversation

sirhcel
Copy link
Contributor

@sirhcel sirhcel commented Aug 17, 2023

When running database migrations with the latest 10.4.31, they fail as shown in issue #1212. Pinning the point release of MariaDB to the latest known-good version maneuvers around this issue.

@juherr
Copy link
Contributor

juherr commented Aug 18, 2023

This change doesn't fix the issue, it is just hiding it :/

@sirhcel
Copy link
Contributor Author

sirhcel commented Aug 18, 2023

Yes, you are absolutely right. Let me rephrase the title. This PR aims at shipping a configuration that just works and might save others the time for troubleshooting.

I would leave tackling the actual issues with the migrations and MariaDB 10.4.31 for others.

@sirhcel sirhcel changed the title Fix database migrations by pinning MariaDB version Pin version of MariaDB for DB migrations Aug 18, 2023
@juherr
Copy link
Contributor

juherr commented Aug 18, 2023

Ok. It makes sense. But why not trying to fix the root issue instead?

At least, add a todo comment that explains it is a workaround with a link to the related issue issue.

@slachiewicz
Copy link
Contributor

MariaDB 10.4.31 Docker image was released 4 days ago and it will break environments for everyone pulling fresh 10.4 tags So it's a rational decision to pin to 10.4.30 for the time being.

Release notes:
https://mariadb.com/kb/en/mariadb-10-4-31-release-notes/
https://mariadb.com/kb/en/mariadb-10-4-31-changelog/

1 similar comment
@slachiewicz
Copy link
Contributor

MariaDB 10.4.31 Docker image was released 4 days ago and it will break environments for everyone pulling fresh 10.4 tags So it's a rational decision to pin to 10.4.30 for the time being.

Release notes:
https://mariadb.com/kb/en/mariadb-10-4-31-release-notes/
https://mariadb.com/kb/en/mariadb-10-4-31-changelog/

@sirhcel sirhcel force-pushed the pin-mariadb-version-for-docker branch from a807743 to b3a9808 Compare August 19, 2023 11:09
@goekay
Copy link
Member

goekay commented Aug 19, 2023

thanks everyone. i agree with the comments here: the PR is not tackling the root cause, but helps to continue providing a working env for builds. this is good enough.

@goekay
Copy link
Member

goekay commented Aug 19, 2023

obviously, editing docker-compose is not the whole story. our actions are failing due to the same issue. pls see my branch https://github.com/steve-community/steve/tree/experiment_mariadb and the pinned versions in github workflow. i would appreciate it if you would include them in your PR as well.

When running database migrations with the latest 10.4.31, they fail as
shown in issue steve-community#1212. Pinning the point release of MariaDB to the latest
known-good version maneuvers around this issue.

Co-authored-by: Sevket Gökay <sevketgokay@gmail.com>
@sirhcel sirhcel force-pushed the pin-mariadb-version-for-docker branch from b3a9808 to 3fd9ff6 Compare August 19, 2023 14:35
@sirhcel
Copy link
Contributor Author

sirhcel commented Aug 19, 2023

Thank you very much for all the feedback!

Ok. It makes sense. But why not trying to fix the root issue instead?

Because I have still no idea what's exactly causing this pretty big change in behavior and how to properly deal with it.

Skimming through the changelog for MariaDB 10.4.31, MariaDB/server@5f09b53bdb looks like something which could be related. And for V0_7_7__update.sql the recommended way of dealing with FK checks in this scenario might be disabling them. But in V0_8_6__update.sql, exactly this approach is used and fails.

At least, add a todo comment that explains it is a workaround with a link to the related issue issue.

Done. Also incorporated the additional pinning from @goekay.

slachiewicz added a commit to slachiewicz/steve that referenced this pull request Aug 20, 2023
slachiewicz added a commit to slachiewicz/steve that referenced this pull request Aug 20, 2023
slachiewicz added a commit to slachiewicz/steve that referenced this pull request Aug 20, 2023
@goekay goekay merged commit 7bb4695 into steve-community:master Aug 20, 2023
27 checks passed
@juherr
Copy link
Contributor

juherr commented Aug 20, 2023

If the issue comes from the migration the only solution will be to remove them.

The v1.0 baseline from #1140 can be used to check it.
It will definitively remove the need of extra rights at the same time.

The huge problem is that it will break all existing instances.
But that's just another argument for multiple flavour releases.

@goekay wdyt?

@juherr
Copy link
Contributor

juherr commented Aug 20, 2023

@sirhcel thanks for the todo comment! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants