[MDEV-5010] InnoDB errors appearing in logs with upgrade from 10.0.0 to 10.0.4 Created: 2013-09-11 Updated: 2013-11-20 Resolved: 2013-11-20 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.4 |
| Fix Version/s: | 10.0.7 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Mike Ashton (Inactive) | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | upstream | ||
| Environment: |
Centos 6.4 |
||
| Issue Links: |
|
||||||||
| Description |
|
When upgrading from 10.0.0 to 10.0.4 the following error appears in the log files:
|
| Comments |
| Comment by Elena Stepanova [ 2013-09-12 ] |
|
Same happens while upgrading from MySQL 5.6.5 to MySQL 5.6.10 or to MySQL 5.6.12. |
| Comment by Elena Stepanova [ 2013-09-12 ] |
|
... or to MySQL 5.6.13. To my understanding, as a general rule, MySQL doesn't guarantee live upgrade from a non-GA version. While I haven't found mentioning of this specific problem in the manual, it does say this: "For upgrades between versions of a MySQL release series that has reached General Availability status, you can move the MySQL format files and data files between different versions on systems with the same architecture. For upgrades to a version of a MySQL release series that is in development status, that is not necessarily true. Use of development releases is at your own risk." I suppose what we have here is an example of "not true". We can try to report it to MySQL, but I'm pretty sure that it will be said to be "not a bug", due to the reason above. |
| Comment by Elena Stepanova [ 2013-09-15 ] |
|
It's an upstream bug, but as Sergei suggested, it can be fixed just by adding an ALTER to the fix_privilege_tables.sql. I tried the following draft change: — scripts/mysql_system_tables_fix.sql 2013-07-04 13:01:36 +0000
+set @have_innodb= (select count(engine) from information_schema.engines where engine='INNODB' and support != 'NO'); It seems to work, although in an attempt to make it look/work similarly to other InnoDB-related changes, I ended up with an ugly construct. Jan, Could you please take a look, and unless you see any danger in the change, make it look all pretty and neat and apply to 10.0? Thanks. |
| Comment by Jan Lindström (Inactive) [ 2013-09-17 ] |
|
I do not fully understand why there is a foreign key to that table or is this a incorrect message ? Where that foreign key is created ? |
| Comment by Elena Stepanova [ 2013-09-17 ] |
|
There used to be a foreign key in the older version (created by install/upgrade). Now it's not there and shouldn't be. But when we do live upgrade from the older version to the current one, the foreign key is not dropped. |
| Comment by Sergei Golubchik [ 2013-09-17 ] |
|
Disclaimer: bellow is an educated guess, I didn't try to verify any of that. I suppose, that |
| Comment by Elena Stepanova [ 2013-09-17 ] |
|
IIRC the table is created in mysql_system_tables.sql (not _fix). |
| Comment by Jan Lindström (Inactive) [ 2013-11-20 ] |
|
Fixed as suggested. |