[MDEV-27554] Server crashes in handler::check_duplicate_long_entry_key after ALTER Created: 2022-01-20 Updated: 2022-04-23 Resolved: 2022-04-23 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table, GIS, Storage Engine - InnoDB |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Alice Sherepa | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
if use blob instead of linesting :
|
| Comments |
| Comment by Elena Stepanova [ 2022-02-23 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
It looks like the bug either never made it to the main branch, or was fixed in it already. Is it right? | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andrei Elkin [ 2022-02-24 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
I've just verified an actual fixed status of what alice found herself at examining a later a855d6d93acf0af 10.8 revision. Apparently it just needs closing with Can't-repeat. I am leaving that out to alice. | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Roel Van de Paar [ 2022-03-09 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
There seem to be various unresolved issues here; consider the differences and issues between these testcase variations;
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andrei Elkin [ 2022-03-09 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
sanja, howdy. In the light of Roel further exploits the issue apparently was not resolved unlike I guessed in my comments. The stack was seen at versions before | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2022-03-21 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
Roel, what versions are affected? | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Roel Van de Paar [ 2022-03-22 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tested on debug builds. Revisions:
Leads to (last command):
Leads to (last command):
Leads to (last command):
Leads to (last command):
| |||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Roel Van de Paar [ 2022-03-22 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
Unclear on how to deduce affected versions from this. It seems to depends on whether 10.2/10.3 is seen as correct or not and/or the correct priority of errors (if any). | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2022-04-19 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
serg, Elkin, | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Andrei Elkin [ 2022-04-20 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
elenst, in my latest comments I wrote 'not fixed bug' under impression Roel's followups confirm/comply-with the description stack. | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2022-04-23 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
why
changes (or tries to change before 10.4) the table structure? The column n does not exist, so change column if exists should not change anything, should it? | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2022-04-23 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
serg, If you mean the general case, then of course all 10.0+ versions are affected, ever since IF [NOT] EXISTS was introduced in ALTER. The basic non-complicated example is
Same for PRIMARY KEY and such. I would guess that when
(quote from For the special case of SERIAL however, while it also has this UNIQUE under the hood, the ALTER_ADD_INDEX flag wasn't set and the above wouldn't happen until https://github.com/MariaDB/server/commit/3fd80d08740d3ad2426bfb8eb9debc40d96e2a20 was added in 10.3+. So, depending on which part of it (if any) you want to fix, the affected versions are either 10.2+ or 10.3+, the fix version is a more difficult question. | |||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2022-04-23 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||
|
Yes, I mean the behavior of IF NOT EXISTS. I agree it should be a new bug report. MDEV-28401 |