Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-32970

mariabackup.data_directory test does not delete a directory with backup and it causes failure of the next test

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • N/A
    • N/A
    • Tests
    • None

    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

      Attachments

        Issue Links

          Activity

            People

              monty Michael Widenius
              tturenko Timofey Turenko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.