Bug #71527 | With GTID_MODE=ON, anonymous transactions are assigned local GTIDs on slaves. | ||
---|---|---|---|
Submitted: | 30 Jan 2014 15:19 | Modified: | 6 Feb 2014 11:51 |
Reporter: | Jean-François Gagné | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.6.15 & 5.7.3 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | GTID |
[30 Jan 2014 15:19]
Jean-François Gagné
[30 Jan 2014 17:38]
Sveta Smirnova
Thank you for the report. At http://dev.mysql.com/doc/refman/5.6/en/replication-gtids-howto.html our manual explicitly says that both master and slave must be in read-only state before you change gtid-mode to ON. Mixing ON and OFF settings of gtid mode while updates are running is not supported.
[6 Feb 2014 11:51]
Sven Sandberg
It's good to have an error message in this case rather than corrupting the GTID state. This has been fixed and will appear in 5.7.4. Here is the changelog entry: Documented fix as follows in the 5.7.4 changelog: When the master and the slave both had gtid_mode=OFF initially, and the slave SQL thread was stopped while there remained anonymous transactions in the relay log, if the slave was then restarted with gtid_mode=ON, then the slave assigned GTIDs such transactions. This could cause problems when the slave was later promoted to a master, as the transactions would be played again on the promoted master's slaves, leading quickly to inconsistencies on those slaves. Closed.