Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.2.24
Description
...
|
CREATE TEMPORARY TABLE t1 (col1 BIGINT NULL) ENGINE = InnoDB;
|
INSERT INTO t1 ( k ) SELECT id FROM t1 ;
|
ERROR 42S22: Unknown column 'id' in 'field list'
|
TRUNCATE TABLE t1 ;
|
ALTER TABLE t1 CHANGE COLUMN id col2 BIGINT NULL;
|
ERROR 42S22: Unknown column 'id' in 't1'
|
TRUNCATE TABLE t1 ;
|
main.ml_19 'innodb' [ fail ]
|
Test ended at 2019-05-13 13:56:45
|
|
CURRENT_TEST: main.ml_19
|
mysqltest: At line 10: query 'TRUNCATE TABLE t1 ' failed: 1030: Got error 168 "Unknown (generic) error from engine" from storage engine InnoDB
|
|
10.2.25 commit 8ce702aa90c174566f4ac950e85cc7570bf9b647
|
10.2.24 commit b30bbb7d9a1c3855c901b74735660e49ab64a2a8 2019-03-25
|
|
No issue in
|
10.3.15 commit 0c188d5efc452b576c46270e65b9db4746ee9dfe (pull 2019-05-13)
|
Attachments
Issue Links
- is caused by
-
MDEV-13564 TRUNCATE TABLE and undo tablespace truncation are not compatible with Mariabackup
-
- Closed
-
- relates to
-
MDEV-17167 InnoDB: Failing assertion: table->get_ref_count() == 0 upon truncating a temporary table
-
- Closed
-
It seems like table is "locked".
Here is bt from gdb:
2019-05-13 6:16:24 140736932443904 [ERROR] InnoDB: Cannot rename table 'tmp/#sql-ib30' to 'tmp/#sql-ib30' since the dictionary cache already contains 'tmp/#sql-ib30'.
Thread 32 "mysqld" hit Breakpoint 1, my_message_sql (error=1030, str=0x7fffdedd4330 "Got error 168 \"Unknown (generic) error from engine\" from storage engine InnoDB", MyFlags=0) at sql/mysqld.cc:3612
(gdb) bt
#0 my_message_sql (error=1030, str=0x7fffdedd4330 "Got error 168 \"Unknown (generic) error from engine\" from storage engine InnoDB", MyFlags=0) at sql/mysqld.cc:3612
#1 0x00005555564d563d in my_error (nr=1030, MyFlags=0) at mysys/my_error.c:125
#2 0x0000555555d9937d in handler::print_error (this=0x7fff6801e880, error=168, errflag=0) at sql/handler.cc:3735
#3 0x0000555555f5e17e in Sql_cmd_truncate_table::handler_truncate (this=0x7fff68010d98, thd=0x7fff68000cf8, table_ref=0x7fff68010780, is_tmp_table=true) at sql/sql_truncate.cc:244
#4 0x0000555555f5e637 in Sql_cmd_truncate_table::truncate_table (this=0x7fff68010d98, thd=0x7fff68000cf8, table_ref=0x7fff68010780) at sql/sql_truncate.cc:399
#5 0x0000555555f5e912 in Sql_cmd_truncate_table::execute (this=0x7fff68010d98, thd=0x7fff68000cf8) at sql/sql_truncate.cc:495
#6 0x0000555555b1d6a3 in mysql_execute_command (thd=0x7fff68000cf8) at sql/sql_parse.cc:6233
#7 0x0000555555b227de in mysql_parse (thd=0x7fff68000cf8, rawbuf=0x7fff680106b0 "TRUNCATE TABLE t1", length=17, parser_state=0x7fffdedd6230, is_com_multi=false, is_next_command=false) at sql/sql_parse.cc:8020
#8 0x0000555555b1000e in dispatch_command (command=COM_QUERY, thd=0x7fff68000cf8, packet=0x7fff680083f9 "TRUNCATE TABLE t1", packet_length=17, is_com_multi=false, is_next_command=false) at sql/sql_parse.cc:1832
#9 0x0000555555b0e964 in do_command (thd=0x7fff68000cf8) at sql/sql_parse.cc:1386
#10 0x0000555555c616c9 in do_handle_one_connection (connect=0x5555579aea58) at sql/sql_connect.cc:1335
#11 0x0000555555c61449 in handle_one_connection (arg=0x5555579aea58) at sql/sql_connect.cc:1241
#12 0x00007ffff72f26db in start_thread (arg=0x7fffdedd7700) at pthread_create.c:463
#13 0x00007ffff66dc88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95