|
Here is a slightly longer test case based on the same idea which ends with a server crash:
--source include/have_partition.inc
|
|
CREATE TABLE t1 (a INT, b INT, KEY (b DESC)) PARTITION BY KEY (b) PARTITIONS 4;
|
INSERT INTO t1 VALUES (8,6),(6,3),(9,2),(5,0);
|
|
CREATE TABLE t2 (a INT, b INT, KEY (b));
|
|
ALTER TABLE t1 EXCHANGE PARTITION p0 WITH TABLE t2;
|
SELECT * FROM t1 PARTITION (p1,p2);
|
|
--error ER_GET_ERRNO
|
INSERT INTO t1 VALUES (3,5);
|
DELETE FROM t1 PARTITION (p1,p2) WHERE a = 1 ORDER BY b, a LIMIT 1;
|
|
# Cleanup
|
DROP TABLE t1, t2;
|
|
10.8 0c5d1342
|
#3 <signal handler called>
|
#4 ha_partition::init_record_priority_queue (this=0x7faddc0f92f0) at /data/src/10.8/sql/ha_partition.cc:5450
|
#5 0x000055b7a031fec1 in ha_partition::index_init (this=0x7faddc0f92f0, inx=0, sorted=true) at /data/src/10.8/sql/ha_partition.cc:5587
|
#6 0x000055b79fb2c6d6 in handler::ha_index_init (this=0x7faddc0f92f0, idx=0, sorted=true) at /data/src/10.8/sql/handler.h:3446
|
#7 0x000055b79fb440b8 in init_read_record_idx (info=0x7fadedf83630, thd=0x7faddc000db8, table=0x7faddc06a708, print_error=true, idx=0, reverse=true) at /data/src/10.8/sql/records.cc:85
|
#8 0x000055b79fc13d63 in mysql_delete (thd=0x7faddc000db8, table_list=0x7faddc0155c8, conds=0x7faddc015e50, order_list=0x7faddc005ca8, limit=1, options=0, result=0x0) at /data/src/10.8/sql/sql_delete.cc:694
|
#9 0x000055b79fc7b865 in mysql_execute_command (thd=0x7faddc000db8, is_called_from_prepared_stmt=false) at /data/src/10.8/sql/sql_parse.cc:4804
|
#10 0x000055b79fc861c1 in mysql_parse (thd=0x7faddc000db8, rawbuf=0x7faddc015410 "DELETE FROM t1 PARTITION (p1,p2) WHERE a = 1 ORDER BY b, a LIMIT 1", length=66, parser_state=0x7fadedf84500) at /data/src/10.8/sql/sql_parse.cc:8027
|
#11 0x000055b79fc72822 in dispatch_command (command=COM_QUERY, thd=0x7faddc000db8, packet=0x7faddc00b999 "DELETE FROM t1 PARTITION (p1,p2) WHERE a = 1 ORDER BY b, a LIMIT 1", packet_length=66, blocking=true) at /data/src/10.8/sql/sql_parse.cc:1894
|
#12 0x000055b79fc711dc in do_command (thd=0x7faddc000db8, blocking=true) at /data/src/10.8/sql/sql_parse.cc:1402
|
#13 0x000055b79fe433c0 in do_handle_one_connection (connect=0x55b7a3cafb38, put_in_cache=true) at /data/src/10.8/sql/sql_connect.cc:1418
|
#14 0x000055b79fe4305f in handle_one_connection (arg=0x55b7a3cb21b8) at /data/src/10.8/sql/sql_connect.cc:1312
|
#15 0x000055b7a033718e in pfs_spawn_thread (arg=0x55b7a3caf6a8) at /data/src/10.8/storage/perfschema/pfs.cc:2201
|
#16 0x00007fadf3a8bea7 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#17 0x00007fadf368adef in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
|