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

Presence of old logs in 10.2.7 will corrupt restored instance (change in behavior)

Details

    Description

      Restore of backups (created with XtraBackup/Maria Backup) into empty data directory is the only valid scenario where success may be guaranteed. In other words if data directory has leftover data/log files from old Server instance - various problems may occur.

      Nevertheless, on practice restore into non-empty directory may easily succeed without any issues (despite being dangerous).

      So far both xtrabackup and mariabackup 10.1 did generate empty log files during --prepare.
      Thus if user does simple 'copy' of prepared backup into non-empty data directory - old logs would be most likely just overwritten.

      Change in behavior:
      Mariabackup 10.2.7 doesn't create empty log files and relies on --copy-back action executed by user. (which will delete old innodb log files, if any).

      For situations where users don't follow mentioned recommendations (i.e. neither use --copy-back or make sure that data directory is empty before restore) - backups created mariabackup 10.2.7 are definitely expected to become inconsistent/corrupted. (because of presence of old leftover InnoDB logs).

      Attachments

        Issue Links

          Activity

            anikitin Andrii Nikitin (Inactive) created issue -
            anikitin Andrii Nikitin (Inactive) made changes -
            Field Original Value New Value
            Description Restore of backups (created with XtraBackup/Maria Backup) into empty data directory is the only valid scenario where success may be guaranteed. In other worlds if data directory has leftover data/log files from old Server instance - various problems may occur.

            Nevertheless, on practice restore into non-empty directory may easily succeed without any issues (despite being dangerous).

            So far both xtrabackup and mariabackup 10.1 did generate empty log files during --prepare.
            Thus if user does simple 'copy' of prepared backup into non-empty data directory - old logs would be overwritten.

            *Change in behavior:*
            Mariabackup 10.2.7 doesn't create empty log files and relies on --copy-back action executed by user. (which will remove old innodb log files if any).

            For situations where users don't follow mentioned recommendations (i.e. neither use --copy-back or make sure that data directory is empty before restore) - backups created mariabackup 10.2.7 are definitely expected to become inconsistent/corrupted. (because of presence of old leftover InnoDB logs).
            Restore of backups (created with XtraBackup/Maria Backup) into empty data directory is the only valid scenario where success may be guaranteed. In other words if data directory has leftover data/log files from old Server instance - various problems may occur.

            Nevertheless, on practice restore into non-empty directory may easily succeed without any issues (despite being dangerous).

            So far both xtrabackup and mariabackup 10.1 did generate empty log files during --prepare.
            Thus if user does simple 'copy' of prepared backup into non-empty data directory - old logs would be overwritten.

            *Change in behavior:*
            Mariabackup 10.2.7 doesn't create empty log files and relies on --copy-back action executed by user. (which will remove old innodb log files if any).

            For situations where users don't follow mentioned recommendations (i.e. neither use --copy-back or make sure that data directory is empty before restore) - backups created mariabackup 10.2.7 are definitely expected to become inconsistent/corrupted. (because of presence of old leftover InnoDB logs).
            anikitin Andrii Nikitin (Inactive) made changes -
            Description Restore of backups (created with XtraBackup/Maria Backup) into empty data directory is the only valid scenario where success may be guaranteed. In other words if data directory has leftover data/log files from old Server instance - various problems may occur.

            Nevertheless, on practice restore into non-empty directory may easily succeed without any issues (despite being dangerous).

            So far both xtrabackup and mariabackup 10.1 did generate empty log files during --prepare.
            Thus if user does simple 'copy' of prepared backup into non-empty data directory - old logs would be overwritten.

            *Change in behavior:*
            Mariabackup 10.2.7 doesn't create empty log files and relies on --copy-back action executed by user. (which will remove old innodb log files if any).

            For situations where users don't follow mentioned recommendations (i.e. neither use --copy-back or make sure that data directory is empty before restore) - backups created mariabackup 10.2.7 are definitely expected to become inconsistent/corrupted. (because of presence of old leftover InnoDB logs).
            Restore of backups (created with XtraBackup/Maria Backup) into empty data directory is the only valid scenario where success may be guaranteed. In other words if data directory has leftover data/log files from old Server instance - various problems may occur.

            Nevertheless, on practice restore into non-empty directory may easily succeed without any issues (despite being dangerous).

            So far both xtrabackup and mariabackup 10.1 did generate empty log files during --prepare.
            Thus if user does simple 'copy' of prepared backup into non-empty data directory - old logs would be overwritten.

            *Change in behavior:*
            Mariabackup 10.2.7 doesn't create empty log files and relies on --copy-back action executed by user. (which most likely will overwrite old innodb log files, if any).

            For situations where users don't follow mentioned recommendations (i.e. neither use --copy-back or make sure that data directory is empty before restore) - backups created mariabackup 10.2.7 are definitely expected to become inconsistent/corrupted. (because of presence of old leftover InnoDB logs).
            anikitin Andrii Nikitin (Inactive) made changes -
            Description Restore of backups (created with XtraBackup/Maria Backup) into empty data directory is the only valid scenario where success may be guaranteed. In other words if data directory has leftover data/log files from old Server instance - various problems may occur.

            Nevertheless, on practice restore into non-empty directory may easily succeed without any issues (despite being dangerous).

            So far both xtrabackup and mariabackup 10.1 did generate empty log files during --prepare.
            Thus if user does simple 'copy' of prepared backup into non-empty data directory - old logs would be overwritten.

            *Change in behavior:*
            Mariabackup 10.2.7 doesn't create empty log files and relies on --copy-back action executed by user. (which most likely will overwrite old innodb log files, if any).

            For situations where users don't follow mentioned recommendations (i.e. neither use --copy-back or make sure that data directory is empty before restore) - backups created mariabackup 10.2.7 are definitely expected to become inconsistent/corrupted. (because of presence of old leftover InnoDB logs).
            Restore of backups (created with XtraBackup/Maria Backup) into empty data directory is the only valid scenario where success may be guaranteed. In other words if data directory has leftover data/log files from old Server instance - various problems may occur.

            Nevertheless, on practice restore into non-empty directory may easily succeed without any issues (despite being dangerous).

            So far both xtrabackup and mariabackup 10.1 did generate empty log files during --prepare.
            Thus if user does simple 'copy' of prepared backup into non-empty data directory - old logs would be most likely just overwritten.

            *Change in behavior:*
            Mariabackup 10.2.7 doesn't create empty log files and relies on --copy-back action executed by user. (which will delete old innodb log files, if any).

            For situations where users don't follow mentioned recommendations (i.e. neither use --copy-back or make sure that data directory is empty before restore) - backups created mariabackup 10.2.7 are definitely expected to become inconsistent/corrupted. (because of presence of old leftover InnoDB logs).
            anikitin Andrii Nikitin (Inactive) made changes -
            Assignee Ralf Gebhardt [ ralf.gebhardt@mariadb.com ] Ian Gilfillan [ greenman ]
            greenman Ian Gilfillan made changes -
            Assignee Ian Gilfillan [ greenman ]
            anikitin Andrii Nikitin (Inactive) made changes -
            Assignee Andrii Nikitin [ anikitin ]
            anikitin Andrii Nikitin (Inactive) made changes -
            Fix Version/s 10.2.8 [ 22544 ]
            marko Marko Mäkelä made changes -
            serg Sergei Golubchik made changes -
            Fix Version/s 10.2.8 [ 22544 ]
            anikitin Andrii Nikitin (Inactive) made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            anikitin Andrii Nikitin (Inactive) made changes -
            Assignee Andrii Nikitin [ anikitin ] Marko Mäkelä [ marko ]
            marko Marko Mäkelä made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            marko Marko Mäkelä made changes -
            Fix Version/s 10.2.10 [ 22615 ]
            Fix Version/s 10.3.3 [ 22644 ]
            Fix Version/s 10.2 [ 14601 ]
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Closed [ 6 ]
            marko Marko Mäkelä made changes -
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 81656 ] MariaDB v4 [ 152476 ]

            People

              marko Marko Mäkelä
              anikitin Andrii Nikitin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 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.