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

Change galera suite MTR tests to use mariabackup instead of xtrabackup

Details

    Description

      Galera MTR suite has following tests, which are configured to use xtrabackup as SST method:
      galera_autoinc_sst_xtrabackup
      galera_ist_innodb_flush_logs
      galera_ist_xtrabackup-v2
      galera_sst_xtrabackup-v2-options
      galera_sst_xtrabackup-v2_encrypt_with_key

      And there are no tests using mariabackup, at the moment.

      Starting from MariaDB 10.2, xtrabackup (version 2.4) does not work with the reviced redo log format. Therefore it is substantial to either add mariabackup as option for SST or to change all SST tests to use mariabackup instead of xtrabackup.

      Attachments

        Issue Links

          Activity

            seppo Seppo Jaakola created issue -
            seppo Seppo Jaakola made changes -
            Field Original Value New Value
            Fix Version/s 10.2 [ 14601 ]
            Fix Version/s 10.3 [ 22126 ]
            svoj Sergey Vojtovich made changes -
            Status Open [ 1 ] Confirmed [ 10101 ]
            svoj Sergey Vojtovich made changes -
            Labels contribution foundation
            svoj Sergey Vojtovich made changes -
            Assignee Seppo Jaakola [ seppo ] Jan Lindström [ jplindst ]
            svoj Sergey Vojtovich added a comment - jplindst , please review https://github.com/MariaDB/server/pull/648
            serg Sergei Golubchik made changes -
            Labels contribution foundation
            marko Marko Mäkelä made changes -
            marko Marko Mäkelä made changes -

            Percona Xtrabackup may be unsafe to use with MariaDB 10.2, because it may process undo log records in a way that is incompatible with the changes implemented in MDEV-12289 (to maintain undo log compatibility with older versions of MariaDB and MySQL up to 5.6).

            Xtrabackup cannot possibly work with the new redo log format introduced in MariaDB 10.3 for MDEV-12288 and MDEV-11369. It also never worked with innodb_encrypt_log. While we are at this, maybe the transfer of encrypted InnoDB data and log files should be covered by tests?

            marko Marko Mäkelä added a comment - Percona Xtrabackup may be unsafe to use with MariaDB 10.2, because it may process undo log records in a way that is incompatible with the changes implemented in MDEV-12289 (to maintain undo log compatibility with older versions of MariaDB and MySQL up to 5.6). Xtrabackup cannot possibly work with the new redo log format introduced in MariaDB 10.3 for MDEV-12288 and MDEV-11369 . It also never worked with innodb_encrypt_log . While we are at this, maybe the transfer of encrypted InnoDB data and log files should be covered by tests?
            marko Marko Mäkelä made changes -
            marko Marko Mäkelä made changes -
            jplindst Jan Lindström (Inactive) made changes -
            Assignee Jan Lindström [ jplindst ] winstone [ winstone ]

            winstone Could you start by applying the pull request and then try to fix the actual test cases one by one to get this issue fixed ?

            jplindst Jan Lindström (Inactive) added a comment - winstone Could you start by applying the pull request and then try to fix the actual test cases one by one to get this issue fixed ?
            jplindst Jan Lindström (Inactive) made changes -
            Priority Major [ 3 ] Critical [ 2 ]

            As far as I can tell, the pull request does not replace references to xtrabackup or innobackupex in scripts/wsrep_sst_xtrabackup*. In fact, it does not touch those scripts at all. I do not think that those scripts have any reason to exist in MariaDB 10.2+.

            marko Marko Mäkelä added a comment - As far as I can tell, the pull request does not replace references to xtrabackup or innobackupex in scripts/wsrep_sst_xtrabackup* . In fact, it does not touch those scripts at all. I do not think that those scripts have any reason to exist in MariaDB 10.2+.
            jplindst Jan Lindström (Inactive) made changes -

            in my opinion it is more appropriate to update galera test suite MTR with separate mariabackup tests , instead of change the available MTR xtrabackup,xtrabackup-v2 tests — refer to MDEV-16018, as well MDEV-16019

            winstone Zdravelina Sokolovska (Inactive) added a comment - - edited in my opinion it is more appropriate to update galera test suite MTR with separate mariabackup tests , instead of change the available MTR xtrabackup,xtrabackup-v2 tests — refer to MDEV-16018 , as well MDEV-16019

            I think that we have no other choice than to remove the xtrabackup scripts from 10.2, because the crash-downgrade prevention in MDEV-13564 (which is planned to be pushed to 10.2) will prevent xtrabackup from working at all. It changes the InnoDB redo log format tag, which will prevent older 10.2 versions from doing crash-downgrade (or versions before MDEV-14909, even a downgrade after clean shutdown).

            marko Marko Mäkelä added a comment - I think that we have no other choice than to remove the xtrabackup scripts from 10.2, because the crash-downgrade prevention in MDEV-13564 (which is planned to be pushed to 10.2) will prevent xtrabackup from working at all. It changes the InnoDB redo log format tag, which will prevent older 10.2 versions from doing crash-downgrade (or versions before MDEV-14909 , even a downgrade after clean shutdown).
            marko Marko Mäkelä made changes -
            marko Marko Mäkelä made changes -
            Fix Version/s 10.2.19 [ 23207 ]
            Fix Version/s 10.2 [ 14601 ]
            marko Marko Mäkelä made changes -
            Priority Critical [ 2 ] Blocker [ 1 ]

            Now that MariaDB Server 10.2.19 will include the fix of MDEV-13564, xtrabackup will no longer work, and I believe that we must remove all references to it starting from 10.2.19.

            marko Marko Mäkelä added a comment - Now that MariaDB Server 10.2.19 will include the fix of MDEV-13564 , xtrabackup will no longer work, and I believe that we must remove all references to it starting from 10.2.19.
            ratzpo Rasmus Johansson (Inactive) made changes -
            winstone Zdravelina Sokolovska (Inactive) made changes -
            Fix Version/s 10.4 [ 22408 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.2 [ 14601 ]
            Fix Version/s 10.2.19 [ 23207 ]
            serg Sergei Golubchik made changes -
            Priority Blocker [ 1 ] Critical [ 2 ]
            winstone Zdravelina Sokolovska (Inactive) made changes -
            Status Confirmed [ 10101 ] In Progress [ 3 ]
            winstone Zdravelina Sokolovska (Inactive) made changes -
            Status In Progress [ 3 ] Stalled [ 10000 ]
            winstone Zdravelina Sokolovska (Inactive) made changes -
            Status Stalled [ 10000 ] Open [ 1 ]

            Changing the galera_ist_xtrabackup-v2.test is duplicating the alredy existing galera_sst_mariabackup.test

            winstone Zdravelina Sokolovska (Inactive) added a comment - Changing the galera_ist_xtrabackup-v2.test is duplicating the alredy existing galera_sst_mariabackup.test

            added test cases
            galera_autoinc_sst_mariabackup
            galera_ist_mariabackup_innodb_flush_logs
            galera_sst_mariabackup-options
            galera_sst_mariabackup_encrypt_with_key
            https://github.com/MariaDB/server/pull/872

            winstone Zdravelina Sokolovska (Inactive) added a comment - - edited added test cases galera_autoinc_sst_mariabackup galera_ist_mariabackup_innodb_flush_logs galera_sst_mariabackup-options galera_sst_mariabackup_encrypt_with_key https://github.com/MariaDB/server/pull/872

            updated the galera disabled.def with galera_autoinc_sst_xtrabackup, galera_ist_innodb_flush_logs, galera_ist_xtrabackup-v2, galera_sst_xtrabackup-v2-options, galera_sst_xtrabackup-v2_encrypt_with_key tests due to MDEV-17304 Replace use of XtraBackup with MariaDB Backup
            https://github.com/MariaDB/server/pull/872

            winstone Zdravelina Sokolovska (Inactive) added a comment - - edited updated the galera disabled.def with galera_autoinc_sst_xtrabackup, galera_ist_innodb_flush_logs, galera_ist_xtrabackup-v2, galera_sst_xtrabackup-v2-options, galera_sst_xtrabackup-v2_encrypt_with_key tests due to MDEV-17304 Replace use of XtraBackup with MariaDB Backup https://github.com/MariaDB/server/pull/872
            winstone Zdravelina Sokolovska (Inactive) made changes -
            Assignee Zdravelina Sokolovska [ winstone ]
            jplindst Jan Lindström (Inactive) made changes -
            Assignee Jan Lindström [ jplindst ]
            jplindst Jan Lindström (Inactive) made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            marko Marko Mäkelä made changes -
            marko Marko Mäkelä made changes -
            • 10.2: Added mariabackup tests, xtrabackup tests with innodb-safe-truncate=off
            • 10.3: Disabled xtrabackup tests as they can't work
            jplindst Jan Lindström (Inactive) added a comment - 10.2: Added mariabackup tests, xtrabackup tests with innodb-safe-truncate=off 10.3: Disabled xtrabackup tests as they can't work
            jplindst Jan Lindström (Inactive) made changes -
            issue.field.resolutiondate 2018-11-28 08:05:15.0 2018-11-28 08:05:15.082
            jplindst Jan Lindström (Inactive) made changes -
            Fix Version/s 10.4.1 [ 23228 ]
            Fix Version/s 10.2.20 [ 23212 ]
            Fix Version/s 10.3.12 [ 23214 ]
            Fix Version/s 10.2 [ 14601 ]
            Fix Version/s 10.3 [ 22126 ]
            Fix Version/s 10.4 [ 22408 ]
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 85935 ] MariaDB v4 [ 133489 ]

            People

              jplindst Jan Lindström (Inactive)
              seppo Seppo Jaakola
              Votes:
              0 Vote for this issue
              Watchers:
              8 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.