ON DUPLICATE KEY UPDATE causing replication to fail



I ran into some problems while setting up replication between 2 version MySQL database. The following error was reported on the Slave site.


Last_Error: Error 'master may suffer from http://bugs.mysql.com/bug.php?id=24432 so slave stops; check error log on slave for more info' on query. Default database: 'wpdatabase'. Query: 'INSERT INTO `wp_2_options` (`option_name`, `option_value`, `autoload`) VALUES ('_transient_timeout_dirsize_cache', '1267703693', 'no') ON DUPLICATE KEY UPDATE `option_name` = VALUES(`option_name`), `option_value` = VALUES(`option_value`), `autoload` = VALUES(`autoload`)

As it seems “ON DUPLICATE KEY UPDATE” statement does not include auto increment values and therefor breaks the replication between a master and a slave.

This is mentioned as a bug (20188) in versions 5.0.24 up till 5.0.34.
As it seemed , I was running 5.0.26 which caused replication to break.

For now I’m looking at an upgrade of my mysql version to be higher as this should solve my problem.

Comments are closed.

Algemeen (9)
GlassFish (49)
Java (58)
Managed Services (10)
Oracle (120)
Private Cloud Hosting (2)
SOA/BPEL/ESB (11)
Software development (92)
Strategie (7)
WSO2 (2)

WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.

  • 071 - 82 000 82
  • Rijndijk 137 | 2394 AG Hazerswoude-Rijndijk
Oracle SOA specialized partner
Java
GlassFish
WSO2
DEMO
i-bridge
Rabobank
Greencat
Jan de Rijk
Reuma Revalidatie Rotterdam
Robeco
VU Medisch Centrum
CHS
LUMC
TomTom
TKP
NCCW
Erasmus MC
UMCG
VIR
ANWB
BVA Auctions
D-Reizen
STEDIN