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

Rename Mariabackup's xtrabackup_* files to mariadb_backup_*

Details

    Description

      Mariabackup creates a few files of the form xtrabackup_*. e.g.:

      $ ls -l backup/xtrabackup_*
      -rw-r----- 1 root root  38 Mar 13 18:43 backup/xtrabackup_binlog_info
      -rw-r--r-- 1 root root  25 Mar 13 18:44 backup/xtrabackup_binlog_pos_innodb
      -rw-r----- 1 root root  99 Mar 13 18:44 backup/xtrabackup_checkpoints
      -rw-r----- 1 root root 572 Mar 13 18:43 backup/xtrabackup_info

      Maybe we should rename these to mariabackup_*?

      Attachments

        Issue Links

          Activity

            bar Alexander Barkov added a comment - Hi vlad.lesin , Please review a new patch version: https://github.com/MariaDB/server/commit/39184ac9a0cb2cb56ef286a6b23b3becb729d2ee Thanks.
            vlad.lesin Vladislav Lesin added a comment - - edited

            bar, I have some doubts about xtrabackup_galera_info renaming. It's used in ./scripts/wsrep_sst_mariabackup.sh for creating state for adding new node to galera cluster. If we just rename it and don't fix the script, it will be broken. I think there should be the same logic in this script as for backup preparing, i.e. try to use old file name, and then the new one. sysprg, could you please suggest how to fix the script?

            vlad.lesin Vladislav Lesin added a comment - - edited bar , I have some doubts about xtrabackup_galera_info renaming. It's used in ./scripts/wsrep_sst_mariabackup.sh for creating state for adding new node to galera cluster. If we just rename it and don't fix the script, it will be broken. I think there should be the same logic in this script as for backup preparing, i.e. try to use old file name, and then the new one. sysprg , could you please suggest how to fix the script?

            Taking into account that the galera sst script for mariabackup will be fixed by Julius, https://github.com/MariaDB/server/commit/0f97bd1244d7c7618698b46327dc2a0900fd8026 looks good to me.

            vlad.lesin Vladislav Lesin added a comment - Taking into account that the galera sst script for mariabackup will be fixed by Julius, https://github.com/MariaDB/server/commit/0f97bd1244d7c7618698b46327dc2a0900fd8026 looks good to me.

            I do not like the idea of renaming files at a later stage as this would make it impossible to use the backup with an older version if things goes wrong.
            It is better to revert to use the old names if the new name does not exist and old name exists.

            monty Michael Widenius added a comment - I do not like the idea of renaming files at a later stage as this would make it impossible to use the backup with an older version if things goes wrong. It is better to revert to use the old names if the new name does not exist and old name exists.

            As we are guaranteeing that one can move from ANY MariaDB version to ANY future version of MariaDB without any fuss, we can NEVER remove supporting the old names from the code. Not in 12.0 or later.

            monty Michael Widenius added a comment - As we are guaranteeing that one can move from ANY MariaDB version to ANY future version of MariaDB without any fuss, we can NEVER remove supporting the old names from the code. Not in 12.0 or later.

            People

              bar Alexander Barkov
              GeoffMontee Geoff Montee (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              10 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.