#0 fsync (fd=10) at fsync.c:27
|
#1 os_file_fsync_posix (file=10) at os0file.cc:2463
|
#2 os_file_flush_func (file=10) at os0file.cc:2564
|
#3 pfs_os_file_flush_func (file=..., src_file=0x17833f6 "/work/mariadb/storage/innobase/fil/fil0fil.cc", src_line=866) at os0file.ic:406
|
#4 fil_flush_low (space=0x2ba6e10) at fil0fil.cc:866
|
#5 fil_flush (space_id=4294967280) at fil0fil.cc:4559
|
#6 log_write_flush_to_disk_low () at log0log.cc:883
|
#7 log_write_up_to (lsn=157508, flush_to_disk=true, rotate_key=false) at log0log.cc:1121
|
#8 trx_flush_log_if_needed_low (lsn=157508) at trx0trx.cc:1192
|
#9 trx_flush_log_if_needed (lsn=157508, trx=0x7ffff05df318) at trx0trx.cc:1214
|
#10 trx_commit_in_memory (trx=0x7ffff05df318, mtr=0x7ffff02f0cd8) at trx0trx.cc:1419
|
#11 trx_commit_low (trx=0x7ffff05df318, mtr=0x7ffff02f0cd8) at trx0trx.cc:1547
|
#12 trx_commit (trx=0x7ffff05df318) at trx0trx.cc:1571
|
#13 trx_commit_for_mysql (trx=0x7ffff05df318) at trx0trx.cc:1707
|
#14 ha_innobase::commit_inplace_alter_table (this=0x7fffa0111870, altered_table=0x7fff9401bac8, ha_alter_info=0x7ffff02f4488, commit=true) at handler0alter.cc:10719
|
#15 handler::ha_commit_inplace_alter_table (this=0x7fffa0111870, altered_table=0x7fff9401bac8, ha_alter_info=0x7ffff02f4488, commit=true) at handler.cc:4492
|
#16 mysql_inplace_alter_table (thd=0x7fff94000cf8, table_list=0x7fff940130f8, table=0x7fffa0101508, altered_table=0x7fff9401bac8, ha_alter_info=0x7ffff02f4488, inplace_supported=HA_ALTER_INPLACE_INSTANT, target_mdl_request=0x7ffff02f4b28, alter_ctx=0x7ffff02f4cd8) at sql_table.cc:7590
|
#17 mysql_alter_table (thd=0x7fff94000cf8, new_db=0x7fff940053c0, new_name=0x7fff94005790, create_info=0x7ffff02f6020, table_list=0x7fff940130f8, alter_info=0x7ffff02f5f68, order_num=0, order=0x0, ignore=false) at sql_table.cc:9688
|
#18 Sql_cmd_alter_table::execute (this=0x7fff94013760, thd=0x7fff94000cf8) at sql_alter.cc:491
|
#19 mysql_execute_command (thd=0x7fff94000cf8) at sql_parse.cc:6301
|
#20 mysql_parse (thd=0x7fff94000cf8, rawbuf=0x7fff94013010 "ALTER TABLE t2 DROP COLUMN c3", length=29, parser_state=0x7ffff02f9500, is_com_multi=false, is_next_command=false) at sql_parse.cc:8103
|
At last I have a simplified test case. I reduced one from innodb.instant_alter_crash and use a revision before fix for
MDEV-18007namely 330c6218dd1 to see a crash.ENGINE=InnoDB;
--send
sleep 2;
--source include/kill_mysqld.inc
disconnect ddl;