Xtrabackup2.4.5 gtid and binlog position different between backup and prepare
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB |
Expired
|
Undecided
|
Unassigned |
Bug Description
Hi,
I am using xtrabackup 2.4.5 to backup mysql5.7.16.
When backup, i got the following message :
170313 15:03:00 Backup created in directory '/data/
MySQL binlog position: filename 'mysql-bin.000011', position '134796', GTID of the last change 'fbcdf0a7-
170313 15:03:00 [00] Streaming backup-my.cnf
170313 15:03:00 [00] ...done
170313 15:03:00 [00] Streaming xtrabackup_info
170313 15:03:00 [00] ...done
xtrabackup: Transaction log of lsn (3254817596) to (3254817605) was copied.
170313 15:03:00 completed OK!
As you see, the binlog position is mysql-bin.000011 @134796, with GTID 1-4805,
But when i prepare the backup,get the following output:
InnoDB: Doing recovery: scanned up to log sequence number 3254817605 (0%)
InnoDB: Doing recovery: scanned up to log sequence number 3254817605 (0%)
InnoDB: Database was not shutdown normally!
InnoDB: Starting crash recovery.
InnoDB: xtrabackup: Last MySQL binlog file position 133205, file name mysql-bin.000011
InnoDB: Creating shared tablespace for temporary tables
InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
So why the binlog file postion is different between backup and prepare?
After prepare, I check the backup database's gtid_executed:
mysql> SELECT @@global.
+------
| @@global.
+------
| fbcdf0a7-
+------
But in the :xtrabackup_
mysql-bin.000011 134796 fbcdf0a7-
So loss some transactions?
Changed in percona-xtrabackup: | |
status: | Incomplete → New |
Changed in percona-xtrabackup: | |
status: | New → Incomplete |
Please share the full xtrabackup command used for backup and prepare stages. You can remove user/password we just need the full options used at each stage.