|
Thanks for the report!
The problem is reproducible after commit dd8474b1dc556d0ea9491d19 in MariaDB 10.2
[Warning] Warning: Enabling keys got errno 136 on test.#sql-5eac_9, retrying
|
mysqld: /home/alice/AM/m8-10.2/src/storage/maria/ha_maria.cc:2032: virtual int ha_maria::enable_indexes(uint): Assertion `thd->killed != 0' failed.
|
[ERROR] mysqld got signal 6 ;
|
testcase:
--source include/have_sequence.inc
|
|
CREATE TABLE `t1` (
|
`id` INT(10) UNSIGNED NOT NULL,
|
`u_id` INT(10) UNSIGNED NOT NULL,
|
`v_id` INT(10) UNSIGNED NOT NULL,
|
`v_date` DATETIME NOT NULL,
|
`status` INT(1) UNSIGNED NOT NULL DEFAULT 0,
|
`deletable` INT(1) UNSIGNED NOT NULL DEFAULT 0,
|
PRIMARY KEY (`id`)
|
) ENGINE=Aria ROW_FORMAT=DYNAMIC;
|
|
insert into t1 SELECT seq,seq,seq,now(),0,0 FROM seq_1_to_10000000;
|
|
alter table t1 add UNIQUE INDEX `*u_id*` (`u_id`, `v_id`, `status`);
|
alter table t1 add INDEX `*v_date*` (`v_date`);
|
alter table t1 add INDEX `*deletable*` (`deletable`);
|
alter table t1 add index `*v_id_status*` (`v_id`, `status`);
|
|
drop table t1;
|
Thread 1 (Thread 0x7fabb931d700 (LWP 30259)):
|
#0 __pthread_kill (threadid=<optimized out>, signo=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:62
|
#1 0x000055c0466036ff in my_write_core (sig=6) at /home/alice/git/10.2/mysys/stacktrace.c:477
|
#2 0x000055c045e952ec in handle_fatal_signal (sig=6) at /home/alice/git/10.2/sql/signal_handler.cc:303
|
#3 <signal handler called>
|
#4 0x00007fabbf04a428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
|
#5 0x00007fabbf04c02a in __GI_abort () at abort.c:89
|
#6 0x00007fabbf042bd7 in __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x55c04693bf87 "thd->killed != 0", file=file@entry=0x55c04693b830 "/home/alice/git/10.2/storage/maria/ha_maria.cc", line=line@entry=2032, function=function@entry=0x55c04693c900 <ha_maria::enable_indexes(unsigned int)::__PRETTY_FUNCTION__> "virtual int ha_maria::enable_indexes(uint)") at assert.c:92
|
#7 0x00007fabbf042c82 in __GI___assert_fail (assertion=0x55c04693bf87 "thd->killed != 0", file=0x55c04693b830 "/home/alice/git/10.2/storage/maria/ha_maria.cc", line=2032, function=0x55c04693c900 <ha_maria::enable_indexes(unsigned int)::__PRETTY_FUNCTION__> "virtual int ha_maria::enable_indexes(uint)") at assert.c:101
|
#8 0x000055c046493daf in ha_maria::enable_indexes (this=0x7faba81664d0, mode=2) at /home/alice/git/10.2/storage/maria/ha_maria.cc:2032
|
#9 0x000055c04649447c in ha_maria::end_bulk_insert (this=0x7faba81664d0) at /home/alice/git/10.2/storage/maria/ha_maria.cc:2221
|
#10 0x000055c045c0b007 in handler::ha_end_bulk_insert (this=0x7faba81664d0) at /home/alice/git/10.2/sql/handler.h:2898
|
#11 0x000055c045cfafe9 in copy_data_between_tables (thd=0x7faba8000a98, from=0x7faba8176848, to=0x7faba8165938, create=..., ignore=false, order_num=0, order=0x0, copied=0x7fabb93194e8, deleted=0x7fabb93194f0, keys_onoff=Alter_info::LEAVE_AS_IS, alter_ctx=0x7fabb931a1c0) at /home/alice/git/10.2/sql/sql_table.cc:10026
|
#12 0x000055c045cf9316 in mysql_alter_table (thd=0x7faba8000a98, new_db=0x7faba8186cc0 "test", new_name=0x0, create_info=0x7fabb931ae00, table_list=0x7faba8115d80, alter_info=0x7fabb931ad20, order_num=0, order=0x0, ignore=false) at /home/alice/git/10.2/sql/sql_table.cc:9450
|
#13 0x000055c045d7251b in Sql_cmd_alter_table::execute (this=0x7faba80f9d80, thd=0x7faba8000a98) at /home/alice/git/10.2/sql/sql_alter.cc:324
|
#14 0x000055c045c2e667 in mysql_execute_command (thd=0x7faba8000a98) at /home/alice/git/10.2/sql/sql_parse.cc:6197
|
#15 0x000055c045c33241 in mysql_parse (thd=0x7faba8000a98, rawbuf=0x7faba806d020 "alter table t1 add index `*v_id_status*` (`v_id`, `status`)", length=60, parser_state=0x7fabb931c1f0, is_com_multi=false, is_next_command=false) at /home/alice/git/10.2/sql/sql_parse.cc:7887
|
#16 0x000055c045c20e66 in dispatch_command (command=COM_QUERY, thd=0x7faba8000a98, packet=0x7faba8007fe9 "", packet_length=60, is_com_multi=false, is_next_command=false) at /home/alice/git/10.2/sql/sql_parse.cc:1805
|
#17 0x000055c045c1f7bd in do_command (thd=0x7faba8000a98) at /home/alice/git/10.2/sql/sql_parse.cc:1360
|
#18 0x000055c045d6d232 in do_handle_one_connection (connect=0x55c04992eb28) at /home/alice/git/10.2/sql/sql_connect.cc:1354
|
#19 0x000055c045d6cfb2 in handle_one_connection (arg=0x55c04992eb28) at /home/alice/git/10.2/sql/sql_connect.cc:1260
|
#20 0x000055c0460c9f2e in pfs_spawn_thread (arg=0x55c04988e6e8) at /home/alice/git/10.2/storage/perfschema/pfs.cc:1863
|
#21 0x00007fabbfc876ba in start_thread (arg=0x7fabb931d700) at pthread_create.c:333
|
#22 0x00007fabbf11c3dd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
|
similar testcase:
CREATE TABLE `t1` (
|
`id` INT PRIMARY KEY,
|
`u_id` INT,
|
`v_id` INT,
|
`v_date` DATETIME,
|
`status` INT(1) DEFAULT 0,
|
`deletable` INT(1) DEFAULT 0
|
) ENGINE=Aria ROW_FORMAT=DYNAMIC;
|
|
insert into t1 SELECT seq,seq,seq,now(),0,0 FROM seq_1_to_10000000;
|
|
alter table t1 add UNIQUE INDEX `*u_id*` (`u_id`, `v_id`, `status`);
|
alter table t1 add INDEX `*v_date*` (`v_date`);
|
alter table t1 add INDEX `*deletable*` (`deletable`);
|
alter table t1 add index `*v_id_status*` (`v_id`, `status`);
|
on 10.2.11:
ERROR 1034 (HY000): Create index by sort failed
|
2017-12-02 16:51:39 140589676951296 [Warning] Warning: Enabling keys got errno 136 on test.#sql-6782_9, retrying
2017-12-02 23:15:48 140517019555648 [ERROR] mysqld: Can't lock aria control file 'm6-10.2.11/dt/aria_log_control' for exclusive use, error: 11. Will retry for 30 seconds
2017-12-02 23:16:19 140517019555648 [ERROR] mysqld: Got error 'Could not get an exclusive lock; file is probably in use by another process' when trying to use aria control file 'm6-10.2.11/dt/aria_log_control'
2017-12-02 23:16:19 140517019555648 [ERROR] Plugin 'Aria' init function returned error.
2017-12-02 23:16:19 140517019555648 [ERROR] Plugin 'Aria' registration as a STORAGE ENGINE failed.
|