GTID position not recorded when --binlog-info=AUTO
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona XtraBackup moved to https://jira.percona.com/projects/PXB | Status tracked in 2.4 | |||||
2.3 |
Fix Released
|
Wishlist
|
Sergei Glushchenko | |||
2.4 |
Fix Released
|
Wishlist
|
Sergei Glushchenko |
Bug Description
Since PXB 2.3.2 and 2.4.x, when taking a backup using xtrabackup binary (eg in v2.4.5) instead of innobackupex the GTID position is not recorded unless you specify --binlog-info=ON during backup phase.
# cat xtrabackup/
mysql-bin.000009 194
# cat xtrabackup/
uuid = 5b6db0a4-
name =
tool_name = xtrabackup
tool_command = --user=root --password=... --backup --target-
tool_version = 2.4.5
ibbackup_version = 2.4.5
server_version = 5.7.16-10-log
start_time = 2016-12-20 15:45:37
end_time = 2016-12-20 15:45:39
lock_time = 0
binlog_pos =
innodb_from_lsn = 0
innodb_to_lsn = 252679027
partial = N
incremental = N
format = file
compact = N
compressed = N
encrypted = N
PXB defaults to --binlog-info=AUTO based on the manual - https:/
During the prepare phase, xtrabackup creates the xtrabackup_
How to repeat:
- Setup master 5.7.16 with GTID enabled
- execute `xtrabackup --backup --target-dir=/path`
- check `xtrabackup_info` and `binlog_pos=` line is empty
- run `xtrabackup --prepare --target-dir=path`, `xtrabackup_
- do the same but use `innobackupex /path`, from the onset you'll see that `binlog_pos=` is populated in `xtrabackup_info` file and `xtrabackup_
Not sure if this is a doc issue where we should notify users to use --binlog-info=ON when taking backups from GTID based servers or needs a code fix.
Samples when innobackupex is used on the same server where xtrabackup was used to take a backup:
# cat innobackupex/ 2016-12- 20_16-11- 31/xtrabackup_ binlog_ info bf33-11e6- b1a8-00163e7d73 03:1
mysql-bin.000009 194 d7922211-
# cat innobackupex/ 2016-12- 20_16-11- 31/xtrabackup_ info c6ce-11e6- 807f-00163e7d73 03 bf33-11e6- b1a8-00163e7d73 03:1'
uuid = fa140bcf-
name =
tool_name = innobackupex
tool_command = --user=root --password=... innobackupex/
tool_version = 2.4.5
ibbackup_version = 2.4.5
server_version = 5.7.16-10-log
start_time = 2016-12-20 16:11:31
end_time = 2016-12-20 16:11:34
lock_time = 0
binlog_pos = filename 'mysql-bin.000009', position '194', GTID of the last change 'd7922211-
innodb_from_lsn = 0
innodb_to_lsn = 252679091
partial = N
incremental = N
format = file
compact = N
compressed = N
encrypted = N