mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
beec9c0e19
copy thread) mariabackup hangs waiting until innodb redo log thread read log till certain LSN, and it waits under FTWRL. If there is redo log read error in the thread, it is finished, and main thread knows nothing about it, what leads to hanging. As it hangs under FTWRL, slave threads on server side can be blocked due to MDL lock conflict. The fix is to finish mariabackup with error message on innodb redo log read failure.
20 lines
620 B
Text
20 lines
620 B
Text
--source include/have_innodb.inc
|
|
--source include/have_debug.inc
|
|
--source include/have_sequence.inc
|
|
|
|
CREATE TABLE t(i INT) ENGINE=INNODB;
|
|
|
|
--let $targetdir=$MYSQLTEST_VARDIR/tmp/backup
|
|
|
|
# Generate enough redo log records to make at least one loop in log group
|
|
--let before_innodb_log_copy_thread_started=INSERT INTO test.t SELECT * from test.seq_1_to_102400
|
|
|
|
--disable_result_log
|
|
# mariabackup must exit with error instead of hanging
|
|
--error 1
|
|
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$targetdir --dbug=+d,mariabackup_events;
|
|
--enable_result_log
|
|
|
|
DROP TABLE t;
|
|
--rmdir $targetdir
|
|
|