|
Here is the most recent trace:
ssh pluto
|
rr replay /data/results/1690368524/MDEV-22250/1_clone/rr/mariadb-backup-0
|
|
10.6 b102872ad50cce5959ad95369740766d14e9e48c
|
[00] 2023-07-26 15:06:25 Finished backing up non-InnoDB tables and files
|
[01] 2023-07-26 15:06:25 Copying /data/results/1690368524/268/1/data//aria_log_control to /data/results/1690368524/268/1_clone/data/aria_log_control
|
[01] 2023-07-26 15:06:25 ...done
|
[01] 2023-07-26 15:06:25 Copying /data/results/1690368524/268/1/data//aria_log.00000001 to /data/results/1690368524/268/1_clone/data/aria_log.00000001
|
[01] 2023-07-26 15:06:25 ...done
|
[00] 2023-07-26 15:06:25 Waiting for log copy thread to read lsn 15537355
|
[New Thread 3364349.3370113]
|
|
Thread 1 hit Hardware watchpoint 2: -location log_file_op
|
|
Old value =
|
(void (*)(ulint, int, const byte *, ulint, const byte *, ulint)) 0x564cd6b88ad0 <backup_file_op(ulint, int, byte const*, ulint, byte const*, ulint)>
|
New value =
|
(void (*)(ulint, int, const byte *, ulint, const byte *, ulint)) 0x564cd6b88220 <backup_file_op_fail(ulint, int, byte const*, ulint, byte const*, ulint)>
|
CorruptedPages::backup_fix_ddl (this=this@entry=0x7ffcee594510,
|
ds_data=ds_data@entry=0x564cd9efb428, ds_meta=ds_meta@entry=0x564cd9efb428)
|
at /data/Server/bb-10.6-primary-corruptionA/extra/mariabackup/xtrabackup.cc:5019
|
5019 pthread_mutex_unlock(&backup_mutex);
|
(rr) continue
|
Continuing.
|
[00] 2023-07-26 15:06:25 Copying ./test/table0_innodb_int.ibd to /data/results/1690368524/268/1_clone/data/test/table0_innodb_int.new
|
[00] 2023-07-26 15:06:25 ...done
|
[00] 2023-07-26 15:06:25 Copying ./test/t1.ibd to /data/results/1690368524/268/1_clone/data/test/t1.new
|
[00] 2023-07-26 15:06:26 ...done
|
[00] 2023-07-26 15:06:26 Copying ./test/FTS_0000000000000188_00000000000001f4_INDEX_1.ibd to /data/results/1690368524/268/1_clone/data/test/FTS_0000000000000188_00000000000001f4_INDEX_1.new
|
[00] 2023-07-26 15:06:26 ...done
|
[00] 2023-07-26 15:06:26 Copying ./test/FTS_0000000000000188_00000000000001f4_INDEX_2.ibd to /data/results/1690368524/268/1_clone/data/test/FTS_0000000000000188_00000000000001f4_INDEX_2.new
|
[00] 2023-07-26 15:06:26 ...done
|
[00] 2023-07-26 15:06:26 Copying ./test/FTS_0000000000000188_00000000000001f4_INDEX_3.ibd to /data/results/1690368524/268/1_clone/data/test/FTS_0000000000000188_00000000000001f4_INDEX_3.new
|
[00] 2023-07-26 15:06:26 ...done
|
[00] 2023-07-26 15:06:26 Copying ./test/FTS_0000000000000188_00000000000001f4_INDEX_4.ibd to /data/results/1690368524/268/1_clone/data/test/FTS_0000000000000188_00000000000001f4_INDEX_4.new
|
[00] 2023-07-26 15:06:26 ...done
|
[00] 2023-07-26 15:06:26 Copying ./test/FTS_0000000000000188_00000000000001f4_INDEX_5.ibd to /data/results/1690368524/268/1_clone/data/test/FTS_0000000000000188_00000000000001f4_INDEX_5.new
|
[00] 2023-07-26 15:06:26 ...done
|
[00] 2023-07-26 15:06:26 Copying ./test/FTS_0000000000000188_00000000000001f4_INDEX_6.ibd to /data/results/1690368524/268/1_clone/data/test/FTS_0000000000000188_00000000000001f4_INDEX_6.new
|
[Switching to Thread 3364349.3370113]
|
|
Thread 5 hit Breakpoint 1, backup_file_op_fail (space_id=380, type=144,
|
name=0x2c6e66877005 "./test/FTS_", '0' <repeats 13 times>, "188_", '0' <repeats 13 times>, "1f4_INDEX_1.ibd", len=56, new_name=0x0, new_len=0)
|
at /data/Server/bb-10.6-primary-corruptionA/extra/mariabackup/xtrabackup.cc:968
|
968 {
|
(rr) up
|
#1 0x0000564cd71c682c in recv_sys_t::parse (this=<optimized out>,
|
checkpoint_lsn=<optimized out>, store=<optimized out>,
|
apply=<optimized out>)
|
at /data/Server/bb-10.6-primary-corruptionA/storage/innobase/log/log0recv.cc:2879
|
2879 log_file_op(space_id, b & 0xf0,
|
(rr) backtrace
|
#0 backup_file_op_fail (space_id=380, type=144, name=0x2c6e66877005 "./test/FTS_", '0' <repeats 13 times>, "188_", '0' <repeats 13 times>, "1f4_INDEX_1.ibd", len=56, new_name=0x0, new_len=0)
|
at /data/Server/bb-10.6-primary-corruptionA/extra/mariabackup/xtrabackup.cc:968
|
#1 0x0000564cd71c682c in recv_sys_t::parse (this=<optimized out>, checkpoint_lsn=<optimized out>, store=<optimized out>, apply=<optimized out>)
|
at /data/Server/bb-10.6-primary-corruptionA/storage/innobase/log/log0recv.cc:2879
|
#2 0x0000564cd6b81fe0 in xtrabackup_copy_log (last=false, end_lsn=15922688, start_lsn=15921664) at /data/Server/bb-10.6-primary-corruptionA/extra/mariabackup/xtrabackup.cc:3097
|
#3 xtrabackup_copy_logfile (last=false) at /data/Server/bb-10.6-primary-corruptionA/extra/mariabackup/xtrabackup.cc:3169
|
#4 0x0000564cd6b82353 in log_copying_thread () at /data/Server/bb-10.6-primary-corruptionA/extra/mariabackup/xtrabackup.cc:3218
|
#5 0x0000419e1df74de4 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
|
#6 0x000065850a5d4609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#7 0x00006ea553b4f293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|
The record is FILE_DELETE (0x90), deleting a file that used to belong to the FULLTEXT INDEX of a table.
There is also a trace of the server that was being backed up:
ssh pluto
|
rr replay /data/results/1690368524/MDEV-22250/1_clone/rr/mariadb-backup-0
|
break mtr_t::log_file_op
|
cond 1 type==FILE_DELETE && $_regex(path,".*0001f4_INDEX_1.ibd")
|
continue
|
backtrace
|
The record was written during the rollback of ALTER TABLE t1 ADD FULLTEXT KEY ftidx ( col4 ) /* E_R Thread11 QNO 34 CON_ID 25 */:
|
10.6 b102872ad50cce5959ad95369740766d14e9e48c
|
Thread 31 hit Breakpoint 1, mtr_t::log_file_op (this=0x7fb8efdb6470, type=FILE_DELETE, space_id=380,
|
path=0x29016401ba10 "./test/FTS_", '0' <repeats 13 times>, "188_", '0' <repeats 13 times>, "1f4_INDEX_1.ibd", new_path=0x0) at /data/Server/bb-10.6-primary-corruptionA/storage/innobase/fil/fil0fil.cc:1517
|
1517 {
|
(rr) bt
|
#0 mtr_t::log_file_op (this=0x7fb8efdb6470, type=FILE_DELETE, space_id=380, path=0x29016401ba10 "./test/FTS_", '0' <repeats 13 times>, "188_", '0' <repeats 13 times>, "1f4_INDEX_1.ibd", new_path=0x0)
|
at /data/Server/bb-10.6-primary-corruptionA/storage/innobase/fil/fil0fil.cc:1517
|
#1 0x000055e257f70931 in fil_delete_tablespace (id=id@entry=380) at /data/Server/bb-10.6-primary-corruptionA/storage/innobase/fil/fil0fil.cc:1699
|
#2 0x000055e257f6c36b in trx_t::commit (this=this@entry=0x140b4400a680, deleted=std::vector of length 0, capacity 0) at /data/Server/bb-10.6-primary-corruptionA/storage/innobase/dict/drop.cc:278
|
#3 0x000055e257e39a82 in commit_unlock_and_unlink (trx=0x140b4400a680) at /data/Server/bb-10.6-primary-corruptionA/storage/innobase/handler/handler0alter.cc:4339
|
#4 0x000055e257e48210 in rollback_inplace_alter_table (ha_alter_info=ha_alter_info@entry=0x7fb8efdb6c60, table=<optimized out>, prebuilt=<optimized out>)
|
at /data/Server/bb-10.6-primary-corruptionA/storage/innobase/handler/handler0alter.cc:9038
|
#5 0x000055e257e435f2 in ha_innobase::commit_inplace_alter_table (this=0x29016401a730, altered_table=0x7fb8efdb6d20, ha_alter_info=0x7fb8efdb6c60, commit=<optimized out>)
|
at /data/Server/bb-10.6-primary-corruptionA/storage/innobase/handler/handler0alter.cc:11015
|
#6 0x000055e257a27557 in mysql_inplace_alter_table (target_mdl_request=0x7fb8efdb7620, alter_ctx=0x7fb8efdb87a0, trigger_param=0x7fb8efdb7110, ddl_log_state=0x7fb8efdb6c00, ha_alter_info=0x7fb8efdb6c60,
|
altered_table=0x7fb8efdb6d20, table=0x7a624017878, table_list=0x2901640108a0, thd=0x290164000c58) at /data/Server/bb-10.6-primary-corruptionA/sql/sql_table.cc:7583
|
#7 mysql_alter_table (thd=thd@entry=0x290164000c58, new_db=new_db@entry=0x290164005500, new_name=new_name@entry=0x290164005958, create_info=create_info@entry=0x7fb8efdb95b0, table_list=<optimized out>,
|
table_list@entry=0x2901640108a0, recreate_info=recreate_info@entry=0x7fb8efdb94a0, alter_info=0x7fb8efdb94c0, order_num=0, order=0x0, ignore=false, if_exists=false)
|
at /data/Server/bb-10.6-primary-corruptionA/sql/sql_table.cc:10354
|
#8 0x000055e257a876d2 in Sql_cmd_alter_table::execute (this=<optimized out>, thd=0x290164000c58) at /data/Server/bb-10.6-primary-corruptionA/sql/structs.h:568
|
#9 0x000055e257982aa6 in mysql_execute_command (thd=0x290164000c58, is_called_from_prepared_stmt=<optimized out>) at /data/Server/bb-10.6-primary-corruptionA/sql/sql_parse.cc:6014
|
#10 0x000055e257972df6 in mysql_parse (rawbuf=<optimized out>, length=<optimized out>, parser_state=<optimized out>, thd=0x290164000c58) at /data/Server/bb-10.6-primary-corruptionA/sql/sql_parse.cc:8041
|
I believe that the problem is that backup locks may fail to adequately block DDL operations. Possibly, some or all FILE_DELETE log records may need to be ignored in backup_file_op_fail().
|