Support VersionCheck feature
XtraBackup should support the VersionCheck feature, which is currently supported by Percona Toolkit. See PT (e.g. pt-table-checksum) source code for implementation details.
There's also protocol specification available (will link later).
Blueprint information
- Status:
- Complete
- Approver:
- Alexey Kopytov
- Priority:
- Essential
- Drafter:
- Alexey Kopytov
- Direction:
- Approved
- Assignee:
- Alexey Kopytov
- Definition:
- Approved
- Series goal:
- Accepted for 2.1
- Implementation:
- Implemented
- Milestone target:
- 2.1.5
- Started by
- Alexey Kopytov
- Completed by
- Alexey Kopytov
Whiteboard
Similar to how it's implemented in Percona Toolkit, innobackupex should support a new --version-check option. When specified, innobackupex will perform a version check against the server on the backup stage after creating a server connection. Whether it will produce any alerts for the user depends on the server version, the contents of VC database at v.percona.com, and the last time the check was performed by either XtraBackup or a PT utility. But the output may look as follows:
----
130826 14:13:41 innobackupex: Connected to MySQL server
130826 14:13:41 innobackupex: Executing a version check against the server...
# A software update is available:
# * Security vulnerability. See http://
130826 14:13:49 innobackupex: Done.
IMPORTANT: Please check that the backup run completes successfully.
At the end of a successful backup run innobackupex
prints "completed OK!".
<normal innobackupex output...>
----