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

            GeoffMontee Geoff Montee (Inactive) created issue -
            GeoffMontee Geoff Montee (Inactive) made changes -
            Field Original Value New Value
            Labels mariabackup
            GeoffMontee Geoff Montee (Inactive) made changes -
            GeoffMontee Geoff Montee (Inactive) made changes -
            Description Mariabackup creates a lot of files of the form xtrabackup_*. e.g.:

            {noformat}
            $ 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
            {noformat}

            Maybe we should rename these to mariabackup_*?
            Mariabackup creates a few files of the form xtrabackup_*. e.g.:

            {noformat}
            $ 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
            {noformat}

            Maybe we should rename these to mariabackup_*?
            GeoffMontee Geoff Montee (Inactive) made changes -
            Assignee Vladislav Vaintroub [ wlad ] Vladislav Lesin [ vlad.lesin ]
            GeoffMontee Geoff Montee (Inactive) made changes -
            GeoffMontee Geoff Montee (Inactive) made changes -
            GeoffMontee Geoff Montee (Inactive) made changes -
            GeoffMontee Geoff Montee (Inactive) made changes -
            GeoffMontee Geoff Montee (Inactive) made changes -
            GeoffMontee Geoff Montee (Inactive) made changes -
            GeoffMontee Geoff Montee (Inactive) made changes -
            GeoffMontee Geoff Montee (Inactive) made changes -
            GeoffMontee Geoff Montee (Inactive) made changes -
            vlad.lesin Vladislav Lesin made changes -
            Fix Version/s 10.6 [ 24028 ]

            any compatibility concerns?

            serg Sergei Golubchik added a comment - any compatibility concerns?

            serg We do not guaranty mariabackup compatibility among major versions. Besides, we already did more serious renames from compatibility perspective, like mysqld->mariadbd, mariabackup->mariadb-backup etc. But we used symlinks for that, what is reasonable and can be used for this issue too.

            vlad.lesin Vladislav Lesin added a comment - serg We do not guaranty mariabackup compatibility among major versions. Besides, we already did more serious renames from compatibility perspective, like mysqld->mariadbd, mariabackup->mariadb-backup etc. But we used symlinks for that, what is reasonable and can be used for this issue too.

            I don't understand. How do you suggest to use symlinks here?

            serg Sergei Golubchik added a comment - I don't understand. How do you suggest to use symlinks here?
            vlad.lesin Vladislav Lesin added a comment - - edited

            We could create mariabackup_* files instead of xtrabackup_*, and create xtrabackup_* symlinks to mariabackup_* to let existing user scripts to use old names.

            vlad.lesin Vladislav Lesin added a comment - - edited We could create mariabackup_* files instead of xtrabackup_*, and create xtrabackup_* symlinks to mariabackup_* to let existing user scripts to use old names.
            julien.fritsch Julien Fritsch made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            serg Sergei Golubchik made changes -
            Priority Critical [ 2 ] Major [ 3 ]

            why should this be done at all?

            serg Sergei Golubchik added a comment - why should this be done at all?
            julien.fritsch Julien Fritsch made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            serg Sergei Golubchik made changes -
            Assignee Vladislav Lesin [ vlad.lesin ] Sergei Golubchik [ serg ]
            serg Sergei Golubchik made changes -
            Priority Critical [ 2 ] Major [ 3 ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Epic/Theme MariaDB_Branding
            julien.fritsch Julien Fritsch made changes -
            Assignee Sergei Golubchik [ serg ] Geoff Montee [ geoffmontee ]
            julien.fritsch Julien Fritsch made changes -
            Labels mariabackup mariabackup need_feedback
            ralf.gebhardt Ralf Gebhardt made changes -
            Fix Version/s 10.6 [ 24028 ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Assignee Geoff Montee [ geoffmontee ] Ralf Gebhardt [ ralf.gebhardt@mariadb.com ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Fix Version/s 10.7 [ 24805 ]
            Assignee Ralf Gebhardt [ ralf.gebhardt@mariadb.com ]
            Priority Major [ 3 ] Critical [ 2 ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Fix Version/s 10.8 [ 26121 ]
            Fix Version/s 10.7 [ 24805 ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Labels mariabackup need_feedback mariabackup
            serg Sergei Golubchik made changes -
            Priority Critical [ 2 ] Major [ 3 ]
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 93284 ] MariaDB v4 [ 131009 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.9 [ 26905 ]
            Fix Version/s 10.8 [ 26121 ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Fix Version/s 10.11 [ 27614 ]
            Fix Version/s 10.9 [ 26905 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.12 [ 28320 ]
            Fix Version/s 10.11 [ 27614 ]
            AirFocus AirFocus made changes -
            Description Mariabackup creates a few files of the form xtrabackup_*. e.g.:

            {noformat}
            $ 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
            {noformat}

            Maybe we should rename these to mariabackup_*?
            Mariabackup creates a few files of the form xtrabackup\_\*. e.g.:

            {noformat}
            $ 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
            {noformat}

            Maybe we should rename these to mariabackup\_\*?
            ralf.gebhardt Ralf Gebhardt made changes -
            Assignee Alexander Barkov [ bar ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Fix Version/s 11.1 [ 28549 ]
            Fix Version/s 11.0 [ 28320 ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Priority Major [ 3 ] Critical [ 2 ]

            As the canonical name is now "mariadb-backup", the files should probably be renamed to mariadb_backup_*.

            bar Alexander Barkov added a comment - As the canonical name is now "mariadb-backup", the files should probably be renamed to mariadb_backup_* .
            bar Alexander Barkov made changes -
            Summary Rename Mariabackup's xtrabackup_* files to mariabackup_* Rename Mariabackup's xtrabackup_* files to mariadb_backup_*
            bar Alexander Barkov made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            bar Alexander Barkov added a comment - serg , please review this patch: https://github.com/MariaDB/server/commit/ba70039c89b91dc1017d1451864bcd3caa3cbda0 Thanks!
            bar Alexander Barkov made changes -
            Status In Progress [ 3 ] In Testing [ 10301 ]
            bar Alexander Barkov made changes -
            Status In Testing [ 10301 ] Stalled [ 10000 ]
            bar Alexander Barkov made changes -
            Assignee Alexander Barkov [ bar ] Sergei Golubchik [ serg ]
            Status Stalled [ 10000 ] In Review [ 10002 ]
            danblack Daniel Black made changes -
            serg Sergei Golubchik made changes -
            Assignee Sergei Golubchik [ serg ] Vladislav Lesin [ vlad.lesin ]
            vlad.lesin Vladislav Lesin made changes -
            Assignee Vladislav Lesin [ vlad.lesin ] Alexander Barkov [ bar ]
            Status In Review [ 10002 ] Stalled [ 10000 ]
            bar Alexander Barkov made changes -
            Status Stalled [ 10000 ] In Progress [ 3 ]
            bar Alexander Barkov made changes -
            Status In Progress [ 3 ] In Testing [ 10301 ]
            bar Alexander Barkov made changes -
            Status In Testing [ 10301 ] Stalled [ 10000 ]
            bar Alexander Barkov added a comment - Hi vlad.lesin , Please review a new patch version: https://github.com/MariaDB/server/commit/39184ac9a0cb2cb56ef286a6b23b3becb729d2ee Thanks.
            bar Alexander Barkov made changes -
            Status Stalled [ 10000 ] In Review [ 10002 ]
            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.
            bar Alexander Barkov made changes -
            bar Alexander Barkov made changes -
            Status In Review [ 10002 ] Stalled [ 10000 ]
            bar Alexander Barkov made changes -
            Fix Version/s 11.1.0 [ 28705 ]
            Fix Version/s 11.1 [ 28549 ]
            Resolution Fixed [ 1 ]
            Status Stalled [ 10000 ] Closed [ 6 ]
            ralf.gebhardt Ralf Gebhardt made changes -
            Labels mariabackup Preview_11.1 mariabackup

            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.
            janlindstrom Jan Lindström made changes -
            hholzgra Hartmut Holzgraefe made changes -

            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.