Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.4(EOL)
Description
Assertion `col.vers_sys_end()' failed in dict_index_t::vers_history_row after dropping column
--source include/have_innodb.inc
|
|
CREATE TABLE t1 (a INT, b INT) ENGINE=InnoDB WITH SYSTEM VERSIONING; |
INSERT INTO t1 VALUES (1,1); |
SET SESSION system_versioning_alter_history= KEEP; |
ALTER TABLE t1 DROP COLUMN b; |
ALTER TABLE t1 DROP SYSTEM VERSIONING; |
|
# Cleanup
|
DROP TABLE t1; |
10.4 b5ac863f14 |
mysqld: /data/src/10.4/storage/innobase/dict/dict0mem.cc:1330: bool dict_index_t::vers_history_row(const rec_t*, const ulint*): Assertion `col.vers_sys_end()' failed.
|
181123 1:48:35 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007ff57c47eee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x0000559ebf3567c4 in dict_index_t::vers_history_row (this=0x7ff51c12df58, rec=0x7ff575fa007e "", offsets=0x7ff51c057e18) at /data/src/10.4/storage/innobase/dict/dict0mem.cc:1330
|
#9 0x0000559ebf1a85f5 in row_merge_read_clustered_index (trx=0x7ff5762bb118, table=0x7ff51c049620, old_table=0x7ff51c12b7f8, new_table=0x7ff51c12ca28, online=false, index=0x7ff51c0a90d0, fts_sort_idx=0x0, psort_info=0x0, files=0x7ff51c15f980, key_numbers=0x7ff51c0a90d8, n_index=1, defaults=0x0, add_v=0x0, col_map=0x7ff51c0a9128, add_autoinc=18446744073709551615, sequence=..., block=0x7ff574153000 "", skip_pk_sort=true, tmpfd=0x7ff5757c0da0, stage=0x7ff51c158ea0, pct_cost=50, crypt_block=0x0, eval_table=0x7ff51c049620, allow_not_null=false) at /data/src/10.4/storage/innobase/row/row0merge.cc:2330
|
#10 0x0000559ebf1af602 in row_merge_build_indexes (trx=0x7ff5762bb118, old_table=0x7ff51c12b7f8, new_table=0x7ff51c12ca28, online=false, indexes=0x7ff51c0a90d0, key_numbers=0x7ff51c0a90d8, n_indexes=1, table=0x7ff51c049620, defaults=0x0, col_map=0x7ff51c0a9128, add_autoinc=18446744073709551615, sequence=..., skip_pk_sort=true, stage=0x7ff51c158ea0, add_v=0x0, eval_table=0x7ff51c049620, allow_not_null=false) at /data/src/10.4/storage/innobase/row/row0merge.cc:4766
|
#11 0x0000559ebf099f0e in ha_innobase::inplace_alter_table (this=0x7ff51c12e8d8, altered_table=0x7ff51c049620, ha_alter_info=0x7ff5757c1bb0) at /data/src/10.4/storage/innobase/handler/handler0alter.cc:8041
|
#12 0x0000559ebeb1571b in handler::ha_inplace_alter_table (this=0x7ff51c12e8d8, altered_table=0x7ff51c049620, ha_alter_info=0x7ff5757c1bb0) at /data/src/10.4/sql/handler.h:4183
|
#13 0x0000559ebeb0ae46 in mysql_inplace_alter_table (thd=0x7ff51c000b00, table_list=0x7ff51c014e90, table=0x7ff51c131210, altered_table=0x7ff51c049620, ha_alter_info=0x7ff5757c1bb0, inplace_supported=HA_ALTER_INPLACE_COPY_LOCK, target_mdl_request=0x7ff5757c1ce0, alter_ctx=0x7ff5757c28d0) at /data/src/10.4/sql/sql_table.cc:7555
|
#14 0x0000559ebeb10e8d in mysql_alter_table (thd=0x7ff51c000b00, new_db=0x7ff51c0051b8, new_name=0x7ff51c005588, create_info=0x7ff5757c34c0, table_list=0x7ff51c014e90, alter_info=0x7ff5757c3400, order_num=0, order=0x0, ignore=false) at /data/src/10.4/sql/sql_table.cc:9694
|
#15 0x0000559ebeb9a015 in Sql_cmd_alter_table::execute (this=0x7ff51c0154d0, thd=0x7ff51c000b00) at /data/src/10.4/sql/sql_alter.cc:497
|
#16 0x0000559ebea394aa in mysql_execute_command (thd=0x7ff51c000b00) at /data/src/10.4/sql/sql_parse.cc:6289
|
#17 0x0000559ebea3e3ce in mysql_parse (thd=0x7ff51c000b00, rawbuf=0x7ff51c014d98 "ALTER TABLE t1 DROP SYSTEM VERSIONING", length=37, parser_state=0x7ff5757c4600, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:8091
|
#18 0x0000559ebea2b6cd in dispatch_command (command=COM_QUERY, thd=0x7ff51c000b00, packet=0x7ff51c093d91 "ALTER TABLE t1 DROP SYSTEM VERSIONING", packet_length=37, is_com_multi=false, is_next_command=false) at /data/src/10.4/sql/sql_parse.cc:1851
|
#19 0x0000559ebea2a0f1 in do_command (thd=0x7ff51c000b00) at /data/src/10.4/sql/sql_parse.cc:1396
|
#20 0x0000559ebeb94294 in do_handle_one_connection (connect=0x559ec15becb0) at /data/src/10.4/sql/sql_connect.cc:1402
|
#21 0x0000559ebeb94018 in handle_one_connection (arg=0x559ec15becb0) at /data/src/10.4/sql/sql_connect.cc:1308
|
#22 0x0000559ebf03a1d9 in pfs_spawn_thread (arg=0x559ec1643f80) at /data/src/10.4/storage/perfschema/pfs.cc:1862
|
#23 0x00007ff57df3a494 in start_thread (arg=0x7ff5757c5700) at pthread_create.c:333
|
#24 0x00007ff57c53b93f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
Not reproducible on 10.3.
Attachments
Issue Links
- causes
-
MDEV-20545 Assertion (col.vers_sys_end()) upon inplace ALTER with virtual columns
- Closed
-
MDEV-29034 Assertion (o->ind == vers_start) upon inplace ALTER with virtual columns
- Closed
- is blocked by
-
MDEV-17899 Instant ADD/DROP multiple failure assertions
- Closed
-
MDEV-18098 Crash after rollback of instant DROP COLUMN
- Closed
- relates to
-
MDEV-18173 Assertion `o->ind == vers_end' or `o->ind == vers_start' failed in dict_table_t::instant_column
- Closed