Menu

Foreign key constraint error but row is routed

Help
2015-11-09
2015-12-02
  • Marco Tinazzi

    Marco Tinazzi - 2015-11-09

    Hi,
    our database structure has some tables with classic master-detail structure. What we have noticed is that sometimes replication of detail table fails because the master record isn't replicated before (Foreign key constraint exception). Looking at sym_data and sym_data_event we can see that master row has a correct data_id (minor than the detail's one) so it should be replicated before the detail row and everything should work as expected. Reloading master tables or inserting missing rows fix the problem and everything runs as expected.

    How is possible to "lose" some rows? Shouldn't symmetric follow insert/update order?

    Thanks,
    Marco

     
  • Marco Tinazzi

    Marco Tinazzi - 2015-11-18

    Hi, today we encountered the same issue... master data is not routed and detail data insert throws a foregin key exception. Any idea?
    What's strange is that master data not inserted/routed for which an exception in thrown was created on master node on 14/11/2015 but all data created in 13/11/2015 are missing too.

    Thanks,
    Marco

     
  • Vinc

    Vinc - 2015-12-02

    are u using master-master or master-slave approach?

     
  • Marco Tinazzi

    Marco Tinazzi - 2015-12-02

    Master-slave

     

Log in to post a comment.