I'm running two instances of SymmetricDS with MySQL.
I have to start and stop synchronizations, for that I use:
update sym_channel set enabled=0/1;
For some reason when they synchronize (enabled=1
), I get the following error:
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`test_db`.`defectstdreference`, CONSTRAINT `Relationship72` FOREIGN KEY (`improve_notice_doc_id`, `defect_id`, `client_id`) REFERENCES `improvementnoticedefect` (`doc_id`, `defect_id`, `client)
Yet, in some time synchronization finishes successfully, so all this exception does is significantly slowing down the process.
Do you have any idea what may have casued this?