[MDEV-19419] ALTER TABLE ... CHANGE COLUMN causing "ERROR 1034 (HY000) at line 41: Index for table 'xyz' is corrupt" with many rows Created: 2019-05-08 Updated: 2019-06-17 Resolved: 2019-06-17 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table |
| Affects Version/s: | 10.2.12 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Adam Hardy | Assignee: | Elena Stepanova |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | need_feedback | ||
| Environment: |
Amazon RDS |
||
| Description |
|
I have 3 databases: prod, test and dev for this app. The databases are on separate instances. I run a mysqldump from prod to test or dev, dropping the logical database on the target first. I then run a script to modify the schema like this:
The last statement breaks with the error: "ERROR 1034 (HY000) at line 41: Index for table 'xyz' is corrupt" There are 100 million+ rows in the table. If I run the SQL on a table with less than 1000 rows, the bug doesn't present itself. This is what the table schema looks like before the change:
I tried to get help on dba.stackexchange.com, where I had some help defining the issue: https://dba.stackexchange.com/questions/228546/mariadb-error-1034-hy000-at-line-41-index-for-table-xyz-is-corrupt-on-imp |
| Comments |
| Comment by Elena Stepanova [ 2019-05-16 ] |
|
I cannot reproduce it right away. Please note that 10.2.12 is 12 releases behind and almost 1.5 years old; if the problem is reproducible for you, could you please try the newest 10.2 to see if it's still there? |