Bug #32437 | INSERT ... ON DUPLICATE KEY UPDATE replication 5.0.27 master & 5.0.45 slave | ||
---|---|---|---|
Submitted: | 16 Nov 2007 14:41 | Modified: | 22 Nov 2007 8:36 |
Reporter: | Martin Houle | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
Version: | 5.0.45 | OS: | Linux (CentOS) |
Assigned to: | CPU Architecture: | Any |
[16 Nov 2007 14:41]
Martin Houle
[16 Nov 2007 14:54]
Martin Houle
seems that most people are lucky enough that the replication still works, but the table are not updated. I just wish it wouldn't break my replication, if there's something I can do, please share! Thanks again
[16 Nov 2007 16:59]
Martin Houle
Ok, finally, I got it resolved. We found that other tables in our replication setup were updating from the same king of queries and were replicating without problems. Further testing showed that having a PRIMARY KEY AUTO_INCREMENT column will cause the problem, so we are resolving to unique index for the moment. Additionnaly, after deleting out primary key column & index, the problem was persistent, we had to drop the table and recreate it for the replication to work. There must've been something stuck somewhere. Hope this helps someone at some point. Martin H.
[22 Nov 2007 8:36]
Sveta Smirnova
Thank you for the report. You pasted: >Query: 'INSERT INTO mount_infomusic (mounntid, title) <snip> >CREATE TABLE `mount_infomusic` ( > `id` int(12) NOT NULL auto_increment, > `mountid` int(12) NOT NULL default '0', But mountid is not mounntid. So error is expected. This also confirms what recreation of table fixed the problem.