Bug #67081 | Transporting InnoDB tablespaces with a full text index crashes mysqld | ||
---|---|---|---|
Submitted: | 4 Oct 2012 13:30 | Modified: | 16 Oct 2012 23:55 |
Reporter: | Joshua Prunier | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S2 (Serious) |
Version: | 5.6.7 | OS: | Linux (CentOS 6.3) |
Assigned to: | CPU Architecture: | Any | |
Tags: | fulltext, innodb, Tablespace |
[4 Oct 2012 13:30]
Joshua Prunier
[12 Oct 2012 19:13]
Sveta Smirnova
Thank you for the report. Verified as described. Backtrace: Thread 1 (process 12688): #0 0x0000003429e0b002 in pthread_kill () from /lib64/libpthread.so.0 #1 0x000000000064b1af in handle_fatal_signal (sig=1231603552) at /pb2/build/sb_0-6945253-1348011354.34/mysql-5.6.7-rc/sql/signal_handler.cc:248 #2 <signal handler called> #3 0x0000003429230015 in raise () from /lib64/libc.so.6 #4 0x0000003429231980 in abort () from /lib64/libc.so.6 #5 0x0000000000a52710 in fil_io (type=10, sync=<value optimized out>, space_id=6, zip_size=0, block_offset=4294967288, byte_offset=0, len=16384, buf=0x2aaaaf4dc000, message=0x2aaaaf230300) at /pb2/build/sb_0-6945253-1348011354.34/mysql-5.6.7-rc/storage/innobase/fil/fil0fil.cc:5136 #6 0x0000000000a1f81c in buf_read_page_low (err=0x4968d0ac, sync=1, mode=<value optimized out>, space=6, zip_size=0, unzip=<value optimized out>, tablespace_version=9, offset=4294967295) at /pb2/build/sb_0-6945253-1348011354.34/mysql-5.6.7-rc/storage/innobase/buf/buf0rea.cc:192 #7 0x0000000000a1fd2b in buf_read_page (space=6, zip_size=0, offset=4294967295) at /pb2/build/sb_0-6945253-1348011354.34/mysql-5.6.7-rc/storage/innobase/buf/buf0rea.cc:406 #8 0x0000000000a0db2d in buf_page_get_gen (space=6, zip_size=0, offset=4294967295, rw_latch=2, guess=0x0, mode=10, file=0xc105f0 "/pb2/build/sb_0-6945253-1348011354.34/mysql-5.6.7-rc/storage/innobase/btr/btr0btr.cc", line=845, mtr=0x4968d1e0) at /pb2/build/sb_0-6945253-1348011354.34/mysql-5.6.7-rc/storage/innobase/buf/buf0buf.cc:2530 #9 0x00000000009e850c in btr_root_adjust_on_import (index=0x1f636a38) at /pb2/build/sb_0-6945253-1348011354.34/mysql-5.6.7-rc/storage/innobase/include/btr0btr.ic:60 #10 0x00000000009803f2 in row_import_for_mysql (table=0x1f654618, prebuilt=0x1f669d98) at /pb2/build/sb_0-6945253-1348011354.34/mysql-5.6.7-rc/storage/innobase/row/row0import.cc:1864 #11 0x0000000000912720 in ha_innobase::discard_or_import_tablespace (this=0x1f661200, discard=0 '\0') at /pb2/build/sb_0-6945253-1348011354.34/mysql-5.6.7-rc/storage/innobase/handler/ha_innodb.cc:9728 #12 0x000000000070863e in mysql_discard_or_import_tablespace (thd=0x1f5228f0, table_list=0x1f6001e0, discard=144) at /pb2/build/sb_0-6945253-1348011354.34/mysql-5.6.7-rc/sql/sql_table.cc:5283 #13 0x00000000007f72df in Sql_cmd_discard_import_tablespace::execute (this=0x1f600748, thd=0x1f5228f0) at /pb2/build/sb_0-6945253-1348011354.34/mysql-5.6.7-rc/sql/sql_alter.cc:365 #14 0x00000000006c6db8 in mysql_execute_command (thd=0x1f5228f0) at /pb2/build/sb_0-6945253-1348011354.34/mysql-5.6.7-rc/sql/sql_parse.cc:4842 #15 0x00000000006c9b7d in mysql_parse (thd=0x1f5228f0, rawbuf=<value optimized out>, length=<value optimized out>, parser_state=<value optimized out>) at /pb2/build/sb_0-6945253-1348011354.34/mysql-5.6.7-rc/sql/sql_parse.cc:6094 #16 0x00000000006ca9d6 in dispatch_command (command=COM_QUERY, thd=0x1f5228f0, packet=0x1f5fbfd1 "alter table innodb_ft_test import tablespace", packet_length=44) at /pb2/build/sb_0-6945253-1348011354.34/mysql-5.6.7-rc/sql/sql_parse.cc:1314 #17 0x0000000000697d8f in do_handle_one_connection (thd_arg=<value optimized out>) at /pb2/build/sb_0-6945253-1348011354.34/mysql-5.6.7-rc/sql/sql_connect.cc:969 #18 0x0000000000697e65 in handle_one_connection (arg=0x1f5228f0) at /pb2/build/sb_0-6945253-1348011354.34/mysql-5.6.7-rc/sql/sql_connect.cc:885 #19 0x00000000008fb8fb in pfs_spawn_thread (arg=<value optimized out>) at /pb2/build/sb_0-6945253-1348011354.34/mysql-5.6.7-rc/storage/perfschema/pfs.cc:1853 #20 0x0000003429e061b5 in start_thread () from /lib64/libpthread.so.0 #21 0x00000034292cd39d in clone () from /lib64/libc.so.6 #22 0x0000000000000000 in ?? () Version 5.7.0 does not crash, since it fails at FLUSH TABLES with a warning: "Warning 1235 InnoDB: This version of MySQL doesn't yet support 'FLUSH TABLES on tables that have an FTS index'"
[16 Oct 2012 23:55]
John Russell
Added to changelog for 5.6.8, 5.7.0: When using the transportable tablespace feature, the ALTER TABLE ... IMPORT TABLESPACE statement could crash if the InnoDB table being flushed contained a FULLTEXT index. With this fix, the table data can be imported, although you must drop and re-create the FULLTEXT index after the import operation.
[2 Apr 2022 9:06]
Thomas Villanova
Having same problem importing a table space on mysql Ver 8.0.28-0ubuntu0.20.04.3 for Linux on x86_64 ((Ubuntu)) lost connection is instantaneous. MY.CNF config >>> https://pastebin.com/0NkFcy5k Tring to import an .ibd file from a previous v8.0.? DB, following this procedure: start server > mysql -u root -p mysql> USE sheepgateMCSgeneral; mysql> CREATE TABLE LuckPerms_group_permissions (PersonID int); mysql> ALTER TABLE sheepgateMCSgeneral.LuckPerms_group_permissions DISCARD TABLESPACE; > chmod 777 /var/lib/mysql -R > cp /<old-location>/LuckPerms_group_permissions.ibd /var/lib/mysql/sheepgateMCSgeneral > chown mysql:mysql /var/lib/mysql/sheepgateMCSgeneral/* mysql> ALTER TABLE sheepgateMCSgeneral.LuckPerms_group_permissions IMPORT TABLESPACE; ERROR 2013 (HY000): Lost connection to MySQL server during query No connection. Trying to reconnect... Enter password: Connection id: 8 Current database: sheepgateMCSgeneral