Uploaded image for project: 'Percona XtraBackup'
  1. Percona XtraBackup
  2. PXB-1737

incorrect coordinates written to xtrabackup_slave_info on with 8.0.3

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 8.0.4
    • Fix Version/s: 8.0.5
    • Component/s: None

      Description

      I'm testing migrating to MySQL 8.0.13 w/ xtrabackup 8.0.3 and  I'm hitting an issue whereby when running
       

      $ xtrabackup --backup --target-dir=/mnt/mysql --slave-info

       
      correctly prints out:

      181229 04:09:17 Backup created in directory '/tmp/xtrabackup_backupfiles/'
      MySQL binlog position: filename 'mysql-bin.000007', position '155'
      MySQL slave binlog position: master host '172.22.1.229', filename 'mysql-bin.000010', position '154', channel name: ''

      however it proceeds to incorrectly write out:

      $ cat /mnt/mysql/xtrabackup_slave_info

      CHANGE MASTER TO MASTER_LOG_FILE='mysql-bin.000010', MASTER_LOG_POS=368;

      It's actually writing the relay_log_pos instead of the exec_master_log_pos — as a result replication won't resume and I get :

                      Last_IO_Error: Got fatal error 1236 from master when reading data from binary log: 'Client requested master to start replication from position > file size'

      The error originates from this commit: https://github.com/percona/percona-xtrabackup/blob/release-8.0-3-rc1/storage/innobase/xtrabackup/src/backup_mysql.cc#L1325

       

      Thanks, and let me know if any more info is needed!

        Attachments

          Activity

            People

            Assignee:
            sergei.glushchenko Sergei Glushchenko (Inactive)
            Reporter:
            martinamps Martin Amps
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 5 hours
                5h

                  Smart Checklist