Merge lp:~gryp/percona-toolkit/pt-slave-restart-gtid-support into lp:~percona-toolkit-dev/percona-toolkit/release-2.2.8
Status: | Merged |
---|---|
Approved by: | Daniel Nichter |
Approved revision: | 604 |
Merged at revision: | 601 |
Proposed branch: | lp:~gryp/percona-toolkit/pt-slave-restart-gtid-support |
Merge into: | lp:~percona-toolkit-dev/percona-toolkit/release-2.2.8 |
Diff against target: |
533 lines (+419/-13) 7 files modified
bin/pt-slave-restart (+132/-6) lib/Sandbox.pm (+1/-0) sandbox/start-sandbox (+8/-0) sandbox/test-env (+10/-7) t/pt-slave-restart/gtid.t (+203/-0) t/pt-slave-restart/gtid_parallelreplication.t (+64/-0) util/checksum-test-dataset (+1/-0) |
To merge this branch: | bzr merge lp:~gryp/percona-toolkit/pt-slave-restart-gtid-support |
Related bugs: | |
Related blueprints: |
pt-slave-restart GTID support
(Medium)
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Nichter | Approve | ||
Review via email: mp+217776@code.launchpad.net |
Commit message
Added GTID support for pt-slave-restart.
Description of the change
Basic support for GTID's.
Documentation:
GLOBAL TRANSACTION IDS
introduced in MySQL in 5.6.5.
It's important to keep in mind that:
o pt-slave-restart will not skip transactions when multiple
failed
o The default behavior is to skip the next transaction from the
slave's master. Writes can originate on different servers,each
with their own unique UUID.
See "--skip-gtid-uuid".
type: string; default: master
When using GTID, an empty transaction should be created in
order to
skip it. If writes are coming from different nodes in the
from which UUID to skip.
By default, the UUID from the slave's master is being used to
skip.
("SHOW GLOBAL STATUS Master_UUID" column).
Example: Master -> Slave1 -> Slave2. When skipping events from
should be specified with the 'Master' it's UUID.
See "GLOBAL TRANSACTION IDS".