Bug #8436 | Multiple "stacked" SQL statements cause replication to stop | ||
---|---|---|---|
Submitted: | 11 Feb 2005 4:33 | Modified: | 21 Mar 2005 13:33 |
Reporter: | Bryan Berg | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
Version: | 4.1.9 | OS: | Linux (Fedora Core 2) |
Assigned to: | Guilhem Bichot | CPU Architecture: | Any |
[11 Feb 2005 4:33]
Bryan Berg
[11 Feb 2005 4:33]
Bryan Berg
Er, that should read: Manually pasting directly from the binary log on the master to the MySQL command-line client on the slave causes the query to succeed.
[11 Feb 2005 15:13]
MySQL Verification Team
Can you please provide part of your client code that causes to put 2 INSERT statements one after another?
[11 Feb 2005 15:37]
MySQL Verification Team
Nevermind .. We were able to reproduce this bug. Thank you for the report!
[11 Feb 2005 18:37]
Guilhem Bichot
Hi, until the bug gets fixed, a workaround is to tell Connector/.NET to send one network packet per query (and not one network packet for several queries packed together), by specifying "allow batch=no" in the connect string. Note that the bug is in the MySQL server, but the workaround is in configuration of Connector/.NET, to avoid hitting the bug.
[11 Feb 2005 19:57]
Bryan Berg
Guilhem: Thanks for pointing that out. We just tested that workaround and it seems to work fine. Just wanted to document that with that workaround in place, the query makes it into the binary log correctly.
[11 Feb 2005 21:44]
Guilhem Bichot
Ok, it confirms what we thought. Thanks for letting us know this. I'm working on a fix which will very very likely appear in 4.1.10.
[15 Feb 2005 14:25]
Guilhem Bichot
fixed in 4.1.10 and 5.0.3 (when 4.1.10 is merged into 5.0.3) ChangeSet@1.2159.10.1, 2005-02-14 23:47:17+01:00, guilhem@mysql.com
[15 Feb 2005 17:06]
Paul DuBois
Mentioned in 4.1.10 and 5.0.3 change notes.
[21 Mar 2005 13:33]
Guilhem Bichot
Fixed in 4.1.11, not 4.1.10 (missed 4.1.10 by two days :( )