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

MariaDB 10.3 compatibility in regard to mb4 #29483

Closed
PVince81 opened this issue Nov 7, 2017 · 16 comments
Closed

MariaDB 10.3 compatibility in regard to mb4 #29483

PVince81 opened this issue Nov 7, 2017 · 16 comments
Assignees
Labels
Milestone

Comments

@PVince81
Copy link
Contributor

PVince81 commented Nov 7, 2017

@VicDeo mentioned that MariaDB 10.3 will get rid of the innodb table format switch.

The question is whether this will make the DB default to always use mb4 or not.

We'll need to:

  1. find a alternative for the missing config switch
  2. if MariaDB 10.3 defaults to mb4 or to the other table format, check whether we need to provide a migration for all the data.

Let's do the research first before deciding on what to do.

@DeepDiver1975 @VicDeo

@PVince81 PVince81 added this to the planned milestone Nov 7, 2017
@PVince81 PVince81 mentioned this issue Nov 7, 2017
9 tasks
@PVince81 PVince81 modified the milestones: planned, development Nov 22, 2017
@VicDeo
Copy link
Member

VicDeo commented Dec 26, 2017

Meanwhile MariaDB 10.3.3 with Beta status was released on 23 Dec 2017.
IMO this is something for 10.1

@PVince81 PVince81 modified the milestones: development, planned Jan 8, 2018
@PVince81
Copy link
Contributor Author

PVince81 commented Jan 8, 2018

Agreed, moving to planned.

Do you have a rough idea about how much work this will be ? (estimate)

@ownclouders
Copy link
Contributor

Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.

(This is an automated comment from GitMate.io.)

@VicDeo
Copy link
Member

VicDeo commented Mar 26, 2018

We're getting closer....
https://mariadb.com/kb/en/library/release-notes-mariadb-103-series/
MariaDB 10.3.5
Status: RC | Release Date: 26 Feb 2018

@PVince81 PVince81 modified the milestones: development, planned Apr 3, 2018
@PVince81
Copy link
Contributor Author

PVince81 commented Apr 3, 2018

moving to planned

with a bit of luck no changes are needed on the code and only testing needed?

@VicDeo
Copy link
Member

VicDeo commented Apr 3, 2018

I wouldn't count on bit of gluck here... We had unit tests with 10.3 when it was in alpha and they failed.

To revive the essence of the issue:
innodb_file_format option is used to detect utfmb4 here

public function supports4ByteCharset(IDBConnection $connection) {
foreach (['innodb_file_format' => 'Barracuda', 'innodb_large_prefix' => 'ON', 'innodb_file_per_table' => 'ON'] as $var => $val) {

According to https://mariadb.com/kb/en/library/xtradbinnodb-server-system-variables/#innodb_file_format
it's always barracuda since MariaDB 10.2.2

Deprecated: MariaDB 10.2
Removed: MariaDB 10.3.1

@VicDeo
Copy link
Member

VicDeo commented Apr 3, 2018

so, for MariaDB 10.3 it's enough to bypass checking this option.
But there could be more surprises of a different kind.

@felixboehm felixboehm added enhancement p4-low Low priority and removed bug-analysis labels Apr 24, 2018
@PVince81 PVince81 removed this from the development milestone Apr 27, 2018
@PVince81 PVince81 modified the milestones: maybe some day, backlog Jul 24, 2018
@PVince81
Copy link
Contributor Author

@VicDeo any action points ? if yes, would be good to estimate and we can put this in the next sprint.

Might need to wait for #32065

@VicDeo
Copy link
Member

VicDeo commented Jul 24, 2018

@PVince81 Adding 10.3.8 to the build matrix would be a good start to confirm that issue persists.
Estimate is up to 0.5md. (optimistic: 1-2 hrs)

Basically it needs omiting 'innodb_file_format' => 'Barracuda' check in case Platform instanceof MariaDb1027Platform (10.3 has no it's own platform and this options is always barracuda since MariaDB 10.2.2)
Estimates for the tests are less clear :)

@PVince81
Copy link
Contributor Author

added 10.3 to the build matrix here: #33255

@PVince81 PVince81 self-assigned this Nov 15, 2018
@PVince81 PVince81 modified the milestones: backlog, development Nov 15, 2018
@PVince81
Copy link
Contributor Author

But there could be more surprises of a different kind.

@VicDeo So far none have been detected in our test suites.

Anything that comes to mind ? If we want to play it safe we could leave this update to be OC 11 only.

@PVince81 PVince81 added p3-medium Normal priority and removed p4-low Low priority labels Nov 15, 2018
@PVince81 PVince81 modified the milestones: development, QA Jan 11, 2019
@phil-davis
Copy link
Contributor

Reopening because this support never got released. The changes "died" with the old master that is archive-master

They are now waiting in #36289 for us to drop PHP 7.0 support

@phil-davis
Copy link
Contributor

mariadb:10.3 support has now been merged to master planned for release in core 10.4
phpunit is running and passing with mariadb:10.3
https://drone.owncloud.com/owncloud/core/21589/15/10

OK, but incomplete, skipped, or risky tests!
Tests: 9901, Assertions: 55811, Skipped: 77.

Now I will try a run of acceptance tests with mariadb:10.3 database backend.

@phil-davis
Copy link
Contributor

PR #36493 runs all unit and acceptance tests with mariadb:10.3 and passes.
So this is good - closing the issue, "fixed" by #36290

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

No branches or pull requests

5 participants