[MDEV-16845] Failure upon upgrade from 5.7.23 to 10.2 and 10.3, pagesize 4K Created: 2018-07-29 Updated: 2018-08-05 Resolved: 2018-08-03 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.2, 10.3 |
| Fix Version/s: | 10.2.17, 10.3.9 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
https://travis-ci.org/elenst/travis-tests/jobs/409014461
Nothing special is needed on MySQL side, apart from bootstrap with page_size 4K. The pre-created datadir is attached. The exact steps to create it were these:
Note: Upon initialization, MySQL sets one-time password which it writes to the error log. MySQL one-time passwords don't work for me reliably on some reason, that's why I reset it using skip-grant-tables. It's not important for the upgrade issue. To reproduce the upgrade problem, start recent MariaDB 10.2 on the created datadir (which you either created as above, or unpacked from the attachment). Don't forget innodb_page_size=4K. The server should complain in the error log but start all right. Then run mysql_upgrade with root user without parameters, like
It complains a lot while running, but the real (fatal) problem happens on phase 4/7:
|
| Comments |
| Comment by Marko Mäkelä [ 2018-07-31 ] | ||
|
I think that we must fix this as part of | ||
| Comment by Elena Stepanova [ 2018-07-31 ] | ||
|
mysql_upgrade runs the statement for innodb_table_stats twice, hence 3 errors. The SQL error can be reproduced by manually executing the same statements, mysql_upgrade doesn't do anything special to achieve it. | ||
| Comment by Marko Mäkelä [ 2018-08-02 ] | ||
|
The dataset works with bb-10.2-marko, with the second commit of | ||
| Comment by Marko Mäkelä [ 2018-08-03 ] | ||
|
Fixed as part of |