[MDEV-32970] mariabackup.data_directory test does not delete a directory with backup and it causes failure of the next test Created: 2023-12-07  Updated: 2024-01-08

Status: Open
Project: MariaDB Server
Component/s: Tests
Affects Version/s: N/A
Fix Version/s: 10.11

Type: Bug Priority: Major
Reporter: Timofey Turenko Assignee: Michael Widenius
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-5336 Implement BACKUP STAGE for safe exter... Closed
relates to MDEV-32932 port backup features from ES In Testing

 Description   

mariabackup.data_directory test in the bb-10.11-backup branch does not delete a directory with backup and it causes failure of the next test:

mariabackup.data_directory               [ pass ]   3445
mariabackup.extra_lsndir                 [ fail ]
        Test ended at 2023-12-07 23:52:53
 
CURRENT_TEST: mariabackup.extra_lsndir
mysqltest: At line 5: exec of '/usr/bin/mariabackup --defaults-file=/tmp/mysql/my.cnf --backup --parallel=10 --target-dir=/tmp/mysql/tmp/backup --extra-lsndir=/tmp/mysql/tmp/extra_lsndir 2>&1' failed, error: 256, status: 1, errno: 11
Output from before failure:
[00] 2023-12-07 23:52:52 Connecting to MariaDB server host: localhost, user: root, password: set, port: 16000, socket: /tmp/mysql/tmp/mysqld.1.sock
[00] 2023-12-07 23:52:52 Using server version 10.11.7-MariaDB-1:10.11.7+maria~ubu2204-log
/usr/bin/mariabackup based on MariaDB server 10.11.7-MariaDB debian-linux-gnu (x86_64)
[00] 2023-12-07 23:52:52 uses posix_fadvise().
[00] 2023-12-07 23:52:52 cd to /tmp/mysql/mysqld.1/data/
[00] 2023-12-07 23:52:52 open files limit requested 1024, set to 1024
[00] 2023-12-07 23:52:52 mariabackup: using the following InnoDB configuration:
[00] 2023-12-07 23:52:52 innodb_data_home_dir = 
[00] 2023-12-07 23:52:52 innodb_data_file_path = ibdata1:12M:autoextend
[00] 2023-12-07 23:52:52 innodb_log_group_home_dir = ./
2023-12-07 23:52:52 0 [Note] InnoDB: Number of transaction pools: 1
2023-12-07 23:52:52 0 [Note] InnoDB: Buffered log writes (block size=512 bytes)
/usr/bin/mariabackup: Can't create file '/tmp/mysql/tmp/backup/ib_logfile0' (errno: 17 "File exists")
[00] 2023-12-07 23:52:52 Error: failed to open the target stream for 'ib_logfile0'.
 
 - saving '/tmp/mysql/log/mariabackup.extra_lsndir/' to '/tmp/mysql/log/mariabackup.extra_lsndir/'

mariabackup.data_directory               [ pass ]   3291
mariabackup.options_check                [ fail ]
...
/usr/bin/mariabackup: Can't create file '/tmp/mysql/tmp/backup/ib_logfile0' (errno: 17 "File exists")
[00] 2023-12-07 23:55:16 Error: failed to open the target stream for 'ib_logfile0'.

https://github.com/MariaDB/server/blob/bb-10.11-backup/mysql-test/suite/mariabackup/data_directory.test

in the 10.11 branch test is ok:

https://github.com/MariaDB/server/blob/10.11/mysql-test/suite/mariabackup/data_directory.test#L35

most probably it is caused by this commit https://github.com/MariaDB/server/commit/d2329e2fb0d4b9de3c26f048a404941629b4bec6#diff-94f077ea3c89e53bc032cccb337b07b7d232ab3035974ef3f202fcb4f53658f9


Generated at Thu Feb 08 10:35:24 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.