[MDEV-3197] LP:498227 - MySQL crashes when InnoDB column is renamed and then added to an index, due to fast index creation bug Created: 2009-12-18 Updated: 2012-10-04 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Casey Forbes (Inactive) | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
This is a pretty nasty one, because a simple "add index" statement can crash your database in a way that seems unpredictable. Bug is present in latest released MariaDB: MySQL 44571: InnoDB Plugin crashes on ADD INDEX The actual crash looks like so: InnoDB: Error: no matching column for "renamed_column" in index "index_renamed_column"- |
| Comments |
| Comment by Kristian Nielsen [ 2009-12-21 ] |
|
Re: MySQL crashes when InnoDB column is renamed and then added to an index, due to fast index creation bug Seems that MySQL 5.1.41 contains a fix for this. This does not crash with the CREATE TABLE orgs ( salesperson INT) ENGINE=InnoDB; In MariaDB latest trunk (which includes MySQL 5.1.41), it does crash. Seems we However, the MySQL fix really is not very nice. Seems basically after a column |
| Comment by Kristian Nielsen [ 2009-12-21 ] |
|
Re: MySQL crashes when InnoDB column is renamed and then added to an index, due to fast index creation bug MariaDB is currently using XtraDB 8, which is based on InnoDB plugin version 1.0.4. Seems the best way to include this fix then is to wait for the next XtraDB release and merge that into MariaDB. The InnoDB plugin 1.0.5 has a test case for this. We should still investigate if we can make a better fix for this. The problem seems to be that a column rename is performed without informing the storage engine, and InnoDB seems to rely on knowing the correct column names internally. Maybe for MariaDB 5.2 we can backport relevant parts of the 6.0 enhanced ALTER TABLE api. |
| Comment by Rasmus Johansson (Inactive) [ 2009-12-22 ] |
|
Re: MySQL crashes when InnoDB column is renamed and then added to an index, due to fast index creation bug http://bugs.mysql.com/47621 The project XtraDB doesn't contain patch for mysqld.... |
| Comment by Kristian Nielsen [ 2009-12-22 ] |
|
Re: MySQL crashes when InnoDB column is renamed and then added to an index, due to fast index creation bug I should merge these additional fixes into MariaDB. I tried to find these fixes in the Launchpad trees. It seems for example revisions 120 and 121 of lp: ~percona-dev/percona-xtradb/extensions-1.0 are relevant. As far as I can see, these have not been released yet, lp:percona-xtradb/release-9 is only up to revision 118. So to merge, I need to merge from a release-xxx branch where the patches are already applied, not an extensions-xxx branch. So please let me know if you will update lp:percona-xtradb/release-9 or other branch with latest patches from extensions-1.0, or if you prefer that I do it. (either way works for me, but we need to coordinate to use the same release-xxx branches or we will get problems with future merges). |
| Comment by Michael Widenius [ 2010-07-19 ] |
|
Re: MySQL crashes when InnoDB column is renamed and then added to an index, due to fast index creation bug |
| Comment by Stewart Smith [ 2011-06-07 ] |
|
Re: MySQL crashes when InnoDB column is renamed and then added to an index, due to fast index creation bug Thanks, |
| Comment by Rasmus Johansson (Inactive) [ 2011-06-07 ] |
|
Launchpad bug id: 498227 |