Conversation
|
@IljaN these are the changes that you made to get CI passing with MariaDb 10.6. The CI passes here with MariaDb 10.2, so the changes are backward-compatible on a newly-installed system.
For everyone: |
|
Do we know how long it might take to migrate for a user with a big database ? |
I couldn't find any info on this. So I guess we need to test. If it's only a metadata DDL change for MariaDB then it might not take long (depends). By the looks of it (just guessing) MariaDB used to store Columns (and indices?) in a compressed form and deprecated this now. Two scenarios I can think of:
|
|
In this PR migration step for ALTERING ROW_FORMAT for tables is missing. |
|
Is the migration something which should be done during a normal ownCloud (minor) upgrade or does it need planing by the admin? There is also the option to set the row type globally so we might be able to remove it from table definitions? |
|
@IljaN ok, maybe we then provide Repair command only for these that fail to upgrade ? For all new instances we just do not use ROW_FORMAT ? Plus we make sure when MariaDB upgrade is attempted we throw proper error with what to do? |
1f65129 to
4f3bfd7
Compare
f293010 to
5c0ca6d
Compare
|
I'd vote for removing the row format from our code. From my point of view, we shouldn't need to care about it. We could suggest to use a specific format because of performance reasons, but I don't think we should enforce it. The problem we have now is that we enforce to use a specific format that is now deprecated. Ideally, that should be fixed by a DBA, completely isolated from ownCloud: switch off ownCloud, convert the DB (on your own, with whatever tools the DB provides), switch on ownCloud. |
I agree, I will check if we can set the row_format=DEFAULT in the migration which is DYNAMIC in MariaDB NOTE: changed to DEFAULT, after migration row_format is DYNAMIC in mariadb10.6, which is good |
5739433 to
aeb79f5
Compare
|
We could bump the oC10 version from |
|
@phil-davis good idea, still wondering if we should migrate or repair (which should be triggered), my favor is migrate |
aeb79f5 to
768f7a2
Compare
I am happy whichever is decided - auto-migrate, or something for an admin to do explicitly. |
|
I'm not sure ownCloud 10.x can work normally without having that row format in the DB, at least until the next core upgrade. Assuming OC 10.x can work without problems (at least until the next core upgrade), I'd remove the migration. If the admin keeps using mariaDB 10.5, the only changes we have is that we no longer require the compressed row format, so the repair step won't do anything. If the admin wants to use mariaDB 10.6, he can change the row format at any time; there is no need to wait for the upgrade (assuming OC doesn't give any problem). The only thing he needs to be careful about is to update to 10.9 for the next upgrade. The upgrade itself on our side won't do anything special. For an update from mariaDB 10.5 + OC 10.8 to mariaDB 10.6 + OC 10.9, I think the best path is:
|
This is not quite correct, I will give the admin the possibility to change MariaDB to 10.6 easily. |
|
If we have a migration, then it is currently going to run on every installation where I guess that will be every installation that uses "real" MySQL and that uses any supported MariaDb 10.2, 10.3 10.4 or 10.5. Do installations with "real" MySQL need to do this change at all? |
MySQL is not affected. |
|
@phil-davis according to @jvillafanez and also this comment nextcloud/server#25436 (comment) |
f7cc00d to
aeedc05
Compare
cfcbb37 to
3d238b4
Compare
|
It seems to be a mismatch between the code and the expectations. The code seems to convert the table row format to the default one, however, the command's help suggests that it's possible to convert to other row formats, but this isn't the case. |
|
@jvillafanez We might extend it in the future, but not for now. |
That's ok, no problem with that. To clarify a bit my points:
|
3d238b4 to
d0e11fc
Compare
d0e11fc to
e5e8cde
Compare
|
Kudos, SonarCloud Quality Gate passed! |
phil-davis
left a comment
There was a problem hiding this comment.
LGTM - I am the PR "owner" so I can't approve.








Description
These are the code changes cherry-picked from PR #39282
They are code changes that make CI pass against MariaDb 10.6
This PR will confirm if these code changes are OK for the oldest supported MariaDb version 10.2.
Related Issue
How Has This Been Tested?
CI
Types of changes
Checklist: