[MDEV-7809] Crash after modifying FK on version 5.5 Created: 2015-03-20 Updated: 2015-09-25 Resolved: 2015-03-27 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table, Storage Engine - InnoDB |
| Affects Version/s: | 5.5.42 |
| Fix Version/s: | 5.5.43 |
| Type: | Bug | Priority: | Major |
| Reporter: | Sam Grandjean | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | upstream, verified | ||
| Environment: |
Win 2012R2 SP1 64-bit, also tested with Win 7 Pro SP1 64-bit |
||
| Issue Links: |
|
||||||||||||
| Description |
| Comments |
| Comment by Elena Stepanova [ 2015-03-24 ] | ||
|
Thanks for the report and the test case. The "crash" part was fixed in It's unclear however why the crash happens on 5.5.42-galera (as reported), while The error on RENAME remains; I'll leave it to jplindst to decide whether it's worth fixing in 5.5. Both problems also exist in the upstream 5.5. | ||
| Comment by Nirbhay Choubey (Inactive) [ 2015-03-25 ] | ||
|
I believe, you are running on Windows? If so, then it must be mariadb-5.5.42 server (and not mariadb-galera-5.5.42). | ||
| Comment by Sam Grandjean [ 2015-03-26 ] | ||
|
Yes I'm running Windows. The binary used for MariaDB installation is mariadb-5.5.42-winx64.msi (SHA1: 28bd539d53f7b45940b192fdfc92e8e31bf06225). | ||
| Comment by Jan Lindström (Inactive) [ 2015-03-27 ] | ||
|
You have error on your SQL. You should first drop a foreign key constraint and then index i.e.
| ||
| Comment by Sam Grandjean [ 2015-05-20 ] | ||
|
@jplindst:
Yes I'm aware of that. The issue is not SQL syntax, but database corruption. | ||
| Comment by Sam Grandjean [ 2015-05-20 ] | ||
|
I can still reproduce the issue with MariaDB 5.5.43. | ||
| Comment by Jan Lindström (Inactive) [ 2015-05-20 ] | ||
|
Can you again explain how your database is corrupted and give clear instructions how to repeat and if that is not feasible provide a database where that happens? | ||
| Comment by Sam Grandjean [ 2015-05-21 ] | ||
I tried with another clean workstation with MariaDB 5.5.43-winx64. Following instructions above, I can reproduce until errno: 150. However there's a slight difference when I tried to re-create the table: I got error (1005) : Can't create table 'test.test_item' (errno: 121) Duplicate key on write or update. If I run the same CREATE TABLE query again, then it works! So the database is no more corrupt, however it's still possible to make the table disappear when running ALTER TABLE in the wrong order. |