[MDEV-20190] Instant operation fails when add column and collation change on non-indexed column Created: 2019-07-27 Updated: 2020-01-21 Resolved: 2019-11-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table, Storage Engine - InnoDB |
| Affects Version/s: | 10.4 |
| Fix Version/s: | 10.4.11 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
The test case is not applicable to 10.3 (ALTER with ALGORITHM=INSTANT is rejected). |
| Comments |
| Comment by Thirunarayanan Balathandayuthapani [ 2019-09-17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The following patch relaxes the debug assertion. Changing collation on non-indexed column + instant add operation leads to this failure.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Thirunarayanan Balathandayuthapani [ 2019-09-17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
will add the following patch to cover
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2019-09-17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I think that we should do a better effort of validating mtype. Yes, it can change DATA_VARMYSQL↔DATA_VARCHAR or DATA_MYSQL↔DATA_CHAR, but only if the prtype is referring to a character-set collation of latin1 type. As far as I can tell, your patch is removing the mtype validation altogether. Furthermore, we should assert somewhere that if this change of mtype occurs, any existing indexes on the column will be dropped. (If the column belongs to the primary key, then the table will have to be rebuilt.) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Thirunarayanan Balathandayuthapani [ 2019-11-23 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Patch is in bb-10.4- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2019-11-25 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
This was a too strict debug assertion only. There should be no impact on non-debug builds. |