Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
N/A
-
None
Description
Notes:
- A fix for
MDEV-31043is already in the branch. Besides, this time the failure affects transactional engines as well, reproducible with at least InnoDB, MyISAM, Aria, HEAP. - The test case is non-deterministic, run with --repeat=N. It fails for me on almost every attempt, but it can vary on different machines and builds.
- The second table (t2) seems to be important somehow, at least I couldn't replace its operation with just a sleep.
--source include/have_sequence.inc
|
|
CREATE TABLE t1 (b int); |
INSERT INTO t1 VALUES (0),(0); |
|
CREATE TABLE t2 (a int); |
INSERT INTO t2 (a) select seq from seq_1_to_128; |
|
--connect (con1,localhost,root,,)
|
--send
|
ALTER TABLE t1 MODIFY b SERIAL; |
|
--connection default
|
DELETE FROM t2 ORDER BY a LIMIT 1; |
DELETE FROM t1 ORDER BY b LIMIT 2; |
|
--connection con1
|
--reap
|
|
# Cleanup
|
DROP TABLE t1, t2; |
bb-11.0-oalter 6f5427417eff |
mysqltest: At line 18: query 'reap' failed: ER_KEY_NOT_FOUND (1032): Can't find record in 't1' |
Attachments
Issue Links
- causes
-
MDEV-31128 Server crashes in Rows_log_event::find_row upon concurrent DML and ALTER
-
- Closed
-
-
MDEV-31172 Server crash or ASAN errors in online_alter_check_autoinc
-
- Closed
-
- includes
-
MDEV-31128 Server crashes in Rows_log_event::find_row upon concurrent DML and ALTER
-
- Closed
-
-
MDEV-31136 Online ALTER is allowed on master but fails on slave with ER_ALTER_OPERATION_NOT_SUPPORTED_REASON
-
- Closed
-
-
MDEV-31172 Server crash or ASAN errors in online_alter_check_autoinc
-
- Closed
-
- is caused by
-
MDEV-16329 Engine-independent online ALTER TABLE
-
- Closed
-
- relates to
-
MDEV-28808 Test MDEV-16329 (ALTER ONLINE TABLE) - Core server part
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue is caused by |
Link |
This issue relates to |
Status | Open [ 1 ] | In Progress [ 3 ] |
Summary | ER_KEY_NOT_FOUND upon concurrent ALTER and DML | ER_KEY_NOT_FOUND upon concurrent CHANGE column to autoinc and DML |
Link |
This issue includes |
Assignee | Nikita Malyavin [ nikitamalyavin ] | Sergei Golubchik [ serg ] |
Status | In Progress [ 3 ] | In Review [ 10002 ] |
Link |
This issue includes |
Assignee | Sergei Golubchik [ serg ] | Nikita Malyavin [ nikitamalyavin ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Assignee | Nikita Malyavin [ nikitamalyavin ] | Sergei Golubchik [ serg ] |
Status | Stalled [ 10000 ] | In Review [ 10002 ] |
Link |
This issue causes |
Link |
This issue causes |
Assignee | Sergei Golubchik [ serg ] | Nikita Malyavin [ nikitamalyavin ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Fix Version/s | 11.2 [ 28603 ] | |
Fix Version/s | 11.1 [ 28549 ] |
Assignee | Nikita Malyavin [ nikitamalyavin ] | Sergei Golubchik [ serg ] |
Status | Stalled [ 10000 ] | In Review [ 10002 ] |
Link |
This issue includes |
Assignee | Sergei Golubchik [ serg ] | Nikita Malyavin [ nikitamalyavin ] |
Status | In Review [ 10002 ] | Stalled [ 10000 ] |
Status | Stalled [ 10000 ] | In Testing [ 10301 ] |
Fix Version/s | 11.2.1 [ 29034 ] | |
Fix Version/s | 11.2 [ 28603 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Testing [ 10301 ] | Closed [ 6 ] |
ER_KEY_NOT_FOUND seems to become a generic marker for ONLINE ALTER TABLE.
The problem here is with an added AUTO_INCREMENT (SERIAL) for a field spec, whereas the initial values were 0:
b
1
2
The autoinc value was silently applied under disabled NO_AUTO_VALUE_ON_ZERO mode.
So the value '0' from the online change could not be found.