Hi all,

I've two servers running ASSP 2.0.1(RC 0.6.04) (sorry for being behind)
each connected to a local MySQL database.
MySQL is setup with master-master replication.

The replication fails very often because of duplicate entries:

[...]
[ERROR] Slave: Error 'Duplicate entry '1.2.3.4' for key 1' on query.
Default database: 'assp'. Query: 'insert into PBBlack
(pkey,pvalue,pfrozen) values ('1.2.3.4','1259760853 1259760853 1 5
1.2.3.4 IPinHELO','0')', Error_code: 1062
[ERROR] Slave: Error 'Duplicate entry '1.2.3.4' for key 1' on query.
Default database: 'assp'. Query: 'insert into RWLCache
(pkey,pvalue,pfrozen) values ('1.2.3.4','1259760854 2','0')',
Error_code: 1062
[ERROR] Slave: Error 'Duplicate entry '[email protected]' for key 1' on
query. Default database: 'assp'. Query: 'insert into PBTrap
(pkey,pvalue,pfrozen) values ('[email protected]','1259760877 1259760877
1','0')', Error_code: 1062
[...]

I think a solution could be using "REPLACE INTO" or "INSERT IGNORE INTO"
instead of "INSERT INTO".

Dirk



------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Assp-test mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-test

Reply via email to