-
-
Notifications
You must be signed in to change notification settings - Fork 827
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
Upgrader - Skip snapshots on some MariaDB env's (roughly: 10.6.0-10.6.5) #27404
Conversation
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
Quick links for reviewers...
|
3e9c27c
to
682fad1
Compare
Seems good.
|
if (stripos($version, 'mariadb') !== FALSE) { | ||
// MariaDB briefly (10.6.0-10.6.5) flirted with the idea of phasing-out `COMPRESSED`. By default, snapshots won't work on those versions. | ||
// https://mariadb.com/kb/en/innodb-compressed-row-format/#read-only | ||
$roCompressed = CRM_Core_DAO::singleValueQuery('SELECT @@innodb_read_only_compressed'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm this variable doesn't exist on mariadb 10.3 so it's a hard crash. From the docs it looks like it doesn't exist until 10.6?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR: #27464
Overview
As reported by @composerjk on Mattermost, some MariaDB configurations fail to create upgrade-snapshots. Specifically, v10.6.0-10.6.5 briefly started a phase-out of support for
COMPRESSED
tables, but this was rolled back. Systems with this option will fail to create upgrade-snapshots.See also: https://mariadb.com/kb/en/innodb-compressed-row-format/#read-only
Before
It tries to create upgrade-snapshots on affected systems - and fails.
After
It shows a warning that snapshots are unsupported - and then skips them. (Hopefully.)
Technical Details
I'm not running MariaDB right now, so I haven't tested this...