Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.0(EOL), 10.1(EOL), 10.2(EOL), 10.3(EOL), 10.4(EOL), 10.5, 10.6, 10.7(EOL)
Description
--source include/have_partition.inc
|
|
CREATE TABLE t1 (i INT NOT NULL, KEY (i)) ROW_FORMAT=DYNAMIC PARTITION BY KEY(i) PARTITIONS 2; |
CREATE TABLE t2 (i INT NOT NULL, KEY (i)); |
ALTER TABLE t1 EXCHANGE PARTITION p1 WITH TABLE t2; |
|
# Cleanup
|
DROP TABLE t1, t2; |
10.0 6559ba71a564 |
mysqld: /data/src/10.0/sql/sql_partition_admin.cc:238: bool compare_table_with_partition(THD*, TABLE*, TABLE*, partition_element*): Assertion `table->s->db_create_options == part_table->s->db_create_options' failed.
|
171214 12:43:46 [ERROR] mysqld got signal 6 ;
|
|
#7 0x00007f738819cee2 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
|
#8 0x00000000009c0dce in compare_table_with_partition (thd=0x7f73822a2070, table=0x7f738089f070, part_table=0x7f738089e470, part_elem=0x7f7380b87e68) at /data/src/10.0/sql/sql_partition_admin.cc:237
|
#9 0x00000000009c1c1a in Sql_cmd_alter_table_exchange_partition::exchange_partition (this=0x7f73808fadc8, thd=0x7f73822a2070, table_list=0x7f73808fa1a0, alter_info=0x7f738a26ba40) at /data/src/10.0/sql/sql_partition_admin.cc:590
|
#10 0x00000000009c07df in Sql_cmd_alter_table_exchange_partition::execute (this=0x7f73808fadc8, thd=0x7f73822a2070) at /data/src/10.0/sql/sql_partition_admin.cc:92
|
#11 0x000000000065398b in mysql_execute_command (thd=0x7f73822a2070) at /data/src/10.0/sql/sql_parse.cc:5114
|
#12 0x0000000000656dc2 in mysql_parse (thd=0x7f73822a2070, rawbuf=0x7f73808fa088 "ALTER TABLE t1 EXCHANGE PARTITION p1 WITH TABLE t2", length=50, parser_state=0x7f738a26c640) at /data/src/10.0/sql/sql_parse.cc:6569
|
#13 0x0000000000649901 in dispatch_command (command=COM_QUERY, thd=0x7f73822a2070, packet=0x7f73837e5071 "ALTER TABLE t1 EXCHANGE PARTITION p1 WITH TABLE t2", packet_length=50) at /data/src/10.0/sql/sql_parse.cc:1296
|
#14 0x0000000000648c01 in do_command (thd=0x7f73822a2070) at /data/src/10.0/sql/sql_parse.cc:999
|
#15 0x0000000000768ab8 in do_handle_one_connection (thd_arg=0x7f73822a2070) at /data/src/10.0/sql/sql_connect.cc:1377
|
#16 0x000000000076882a in handle_one_connection (arg=0x7f73822a2070) at /data/src/10.0/sql/sql_connect.cc:1292
|
#17 0x0000000000ac9564 in pfs_spawn_thread (arg=0x7f73821a2370) at /data/src/10.0/storage/perfschema/pfs.cc:1861
|
#18 0x00007f7389ea0494 in start_thread (arg=0x7f738a26d700) at pthread_create.c:333
|
#19 0x00007f738825993f in clone () from /lib/x86_64-linux-gnu/libc.so.6
|
Reproducible on 10.x and MySQL 5.6, 5.7, with InnoDB and MyISAM. Also filed as https://bugs.mysql.com/bug.php?id=88916
Attachments
Issue Links
- relates to
-
MDEV-18858 Assertion `table->s->db_options_in_use == part_table->s->db_options_in_use' failed in compare_table_with_partition
-
- Confirmed
-
-
MDEV-23357 Server crashes in Sql_cmd_alter_table_exchange_partition::exchange_partition
-
- Closed
-
- links to
still reproducible
10.5 c69520c9dfa6e4a26258842a1d35
mariadbd: /10.5/sql/sql_partition_admin.cc:263: bool compare_table_with_partition(THD*, TABLE*, TABLE*, partition_element*, uint): Assertion `table->s->db_create_options == part_table->s->db_create_options' failed.
200731 14:17:39 [ERROR] mysqld got signal 6 ;
Server version: 10.5.5-MariaDB-debug-log
linux/raise.c:51(__GI_raise)[0x7fd1a6b747bb]
stdlib/abort.c:81(__GI_abort)[0x7fd1a6b5f535]
intl/loadmsgcat.c:1177(_nl_load_domain)[0x7fd1a6b5f40f]
??:0(__assert_fail)[0x7fd1a6b6d102]
sql/sql_partition_admin.cc:264(compare_table_with_partition(THD*, TABLE*, TABLE*, partition_element*, unsigned int))[0x560ca6f9b632]
sql/sql_partition_admin.cc:630(Sql_cmd_alter_table_exchange_partition::exchange_partition(THD*, TABLE_LIST*, Alter_info*))[0x560ca6f97b0d]
sql/sql_partition_admin.cc:109(Sql_cmd_alter_table_exchange_partition::execute(THD*))[0x560ca6b8f64d]
sql/sql_parse.cc:5951(mysql_execute_command(THD*))[0x560ca6b9cc7c]
sql/sql_parse.cc:7993(mysql_parse(THD*, char*, unsigned int, Parser_state*, bool, bool))[0x560ca6b73b95]
sql/sql_parse.cc:1869(dispatch_command(enum_server_command, THD*, char*, unsigned int, bool, bool))[0x560ca6b704ad]
sql/sql_parse.cc:1347(do_command(THD*))[0x560ca6f946c6]
sql/sql_connect.cc:1410(do_handle_one_connection(CONNECT*, bool))[0x560ca6f94023]
sql/sql_connect.cc:1314(handle_one_connection)[0x560ca7c49886]
nptl/pthread_create.c:487(start_thread)[0x7fd1a762ffa3]
x86_64/clone.S:97(clone)[0x7fd1a6c364cf]
Query (0x62b0000382a8): ALTER TABLE t1 EXCHANGE PARTITION p1 WITH TABLE t2