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

MariaBackup --backup does not work with non-default aria_block_size

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.11, 11.2(EOL), 11.4, 11.6(EOL)
    • 10.11, 11.4
    • mariabackup

    Description

      If the server runs with non-default aria_block_size, mariabackup --backup fails upon opening Aria log file.

      --exec mkdir -p $MYSQL_TMP_DIR/data/mysql
      --exec $MYSQLD_BOOTSTRAP_CMD --aria-block-size=32768 --datadir=$MYSQL_TMP_DIR/data < $MYSQLTEST_VARDIR/log/bootstrap.sql
      --let $restart_parameters= --datadir=$MYSQL_TMP_DIR/data --aria-block-size=32768
      --source include/restart_mysqld.inc
      select @@aria_block_size;
      --error 0,1
      --exec sh -c "$XTRABACKUP --backup --target-dir=$MYSQL_TMP_DIR/backup -uroot --socket=$MASTER_MYSOCK > $MYSQL_TMP_DIR/backup.log 2>&1"
      if ($sys_errno)
      {
        --exec tail $MYSQL_TMP_DIR/backup.log
      }
      

      10.11 abc46259c6e6fc0fdf8144ad4be551495d88d22a

      # restart: --datadir=MYSQLTEST_VARDIR/tmp/data --aria-block-size=32768
      select @@aria_block_size;
      @@aria_block_size
      32768
      [00] 2024-10-27 02:16:57 mariabackup: Generating a list of tablespaces
      [00] 2024-10-27 02:16:57 Connecting to MariaDB server host: localhost, user: root, password: not set, port: not set, socket: /mnt8t/bld/10.11-asan/mysql-test/var/tmp/mysqld.1.sock
      [00] 2024-10-27 02:16:57 Retrying read of log at LSN=58290
      [00] 2024-10-27 02:16:57 Connecting to MariaDB server host: localhost, user: root, password: not set, port: not set, socket: /mnt8t/bld/10.11-asan/mysql-test/var/tmp/mysqld.1.sock
      [00] 2024-10-27 02:16:57 BACKUP STAGE START
      [00] 2024-10-27 02:16:57 Acquiring BACKUP LOCKS...
      [00] 2024-10-27 02:16:57 Copying /mnt8t/bld/10.11-asan/mysql-test/var/tmp/data//aria_log_control to /mnt8t/bld/10.11-asan/mysql-test/var/tmp/backup/aria_log_control
      [00] 2024-10-27 02:16:57         ...done
      [00] 2024-10-27 02:16:57 Loading aria_log_control.
      [00] FATAL ERROR: 2024-10-27 02:16:57 Can't open Aria control file (0)
      

      Attachments

        Activity

          People

            monty Michael Widenius
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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