Bug #40872 | Slave doesn't get replicated properly with ON DUPLICATE KEY UPDATE statements | ||
---|---|---|---|
Submitted: | 19 Nov 2008 23:09 | Modified: | 20 Dec 2008 6:51 |
Reporter: | Kayra Otaner | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: Replication | Severity: | S2 (Serious) |
Version: | 5.0.45, 5.0.51a (ICC) | OS: | Linux |
Assigned to: | CPU Architecture: | Any | |
Tags: | ON DUPLICATE KEY UPDATE, replication |
[19 Nov 2008 23:09]
Kayra Otaner
[20 Nov 2008 6:51]
Sveta Smirnova
Thank you for the report. You said: ----<START QUOTE>---- About 2 weeks ago a change in the java code caused stored procedures executed against master host with binlog disabled. So data didn't get replicated to the slave for >5 days. When I noticed it, we just enabled binlogging on the java code to write updates to the table. When the stored procedure is executed next night, it ran for last 5 days and data populated on the master properly as it was expected, but the slave had the data captured/calculated almost randomly for those dates it ran. ----<END QUOTE>---- Also you said " One final test I did was to truncate agg table on the slave, and run sp against it on the master. This produced correct result when the sp/updates are replicated to the slave." It looks like after having binlog disabled tables on master have new rows with unique key, but not on slave. In this case this is intended behavior, because slave can not know about not existent rows. Please check. Also you can open support issue if you need help regarding to this problem.
[21 Dec 2008 0:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".