mirror of
https://github.com/MariaDB/server.git
synced 2026-05-08 08:04:29 +02:00
MDEV-24026: InnoDB: Failing assertion: os_total_large_mem_allocated >= size upon incremental backup
mariabackup deallocated uninitialized write_filt_ctxt.u.wf_incremental_ctxt in xtrabackup_copy_datafile() when some table should be skipped due to parsed DDL redo log record.
This commit is contained in:
parent
9e3e4c0e04
commit
6cb88685c4
5 changed files with 21 additions and 3 deletions
|
|
@ -2,6 +2,7 @@ call mtr.add_suppression("InnoDB: New log files created");
|
|||
CREATE TABLE t1(i INT PRIMARY KEY) ENGINE INNODB;
|
||||
CREATE TABLE t2(i INT PRIMARY KEY) ENGINE INNODB;
|
||||
CREATE TABLE t3(i INT) ENGINE INNODB;
|
||||
CREATE TABLE t10(i INT PRIMARY KEY) ENGINE INNODB;
|
||||
# Create full backup , modify table, then create incremental/differential backup
|
||||
INSERT into t1 values(1);
|
||||
# Prepare full backup, apply incremental one
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ let $incremental_dir=$MYSQLTEST_VARDIR/tmp/backup_inc1;
|
|||
CREATE TABLE t1(i INT PRIMARY KEY) ENGINE INNODB;
|
||||
CREATE TABLE t2(i INT PRIMARY KEY) ENGINE INNODB;
|
||||
CREATE TABLE t3(i INT) ENGINE INNODB;
|
||||
CREATE TABLE t10(i INT PRIMARY KEY) ENGINE INNODB;
|
||||
|
||||
echo # Create full backup , modify table, then create incremental/differential backup;
|
||||
--disable_result_log
|
||||
|
|
@ -20,8 +21,11 @@ INSERT into t1 values(1);
|
|||
--let after_copy_test_t1=RENAME TABLE test.t1 TO test.t1_renamed
|
||||
--let after_copy_test_t2=DROP TABLE test.t2
|
||||
--let after_copy_test_t3=CREATE INDEX a_i ON test.t3(i);
|
||||
--let before_copy_test_t10=DROP TABLE test.t10
|
||||
--let wait_innodb_redo_before_copy=test/t10
|
||||
|
||||
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$incremental_dir --incremental-basedir=$basedir --dbug=+d,mariabackup_events;
|
||||
# mariabackup should crash with assertion if MDEV-24026 is not fixed
|
||||
exec $XTRABACKUP --defaults-file=$MYSQLTEST_VARDIR/my.cnf --backup --target-dir=$incremental_dir --incremental-basedir=$basedir --dbug=+d,mariabackup_events,mariabackup_inject_code;
|
||||
--let after_load_tablespaces=
|
||||
--disable_result_log
|
||||
echo # Prepare full backup, apply incremental one;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue