Hi,
I try to replicate from XtraDB Cluster 5.5 to XtraDB Cluster 5.6. I tried it with the following steps:
- Copy the data from the old cluster to one node in the new cluster with innobackupex
- Prepare the data with xtrabackup
- Start Node 1
- mysql_upgrade
- join on other node in the new cluster.
- Start the replication.
The replication runs for a while but after few seconds, the other node in the new cluster shuts down:
2017-02-06 16:39:53 21724 [ERROR] Slave SQL: Could not execute Write_rows event on table userdatadb.resulting_tracks_state; Cannot add or update a child row: a foreign key constraint fails (userdatadb
.resu lting_tracks_state
, CONSTRAINT wish_state_id_idx
FOREIGN KEY (wish_state_id
) REFERENCES wishes_state
(wish_state_id
) ON DELETE CASCADE ON UPDATE NO ACTION), Error_code: 1452; handler error HA_ERR_NO_
REFERENCED_ROW; the event’s master log FIRST, end_log_pos 282, Error_code: 1452
2017-02-06 16:39:53 21724 [Warning] WSREP: RBR event 3 Write_rows apply warning: 151, 333958
2017-02-06 16:39:53 21724 [Warning] WSREP: Failed to apply app buffer: seqno: 333958, status: 1
at galera/src/trx_handle.cpp:apply():351
Retrying 4th time
2017-02-06 16:39:53 21724 [ERROR] Slave SQL: Could not execute Write_rows event on table userdatadb.resulting_tracks_state; Cannot add or update a child row: a foreign key constraint fails (userdatadb
.resu lting_tracks_state
, CONSTRAINT wish_state_id_idx
FOREIGN KEY (wish_state_id
) REFERENCES wishes_state
(wish_state_id
) ON DELETE CASCADE ON UPDATE NO ACTION), Error_code: 1452; handler error HA_ERR_NO_
REFERENCED_ROW; the event’s master log FIRST, end_log_pos 282, Error_code: 1452
2017-02-06 16:39:53 21724 [Warning] WSREP: RBR event 3 Write_rows apply warning: 151, 333958
2017-02-06 16:39:53 21724 [ERROR] WSREP: Failed to apply trx: source: 871100a1-ec71-11e6-8dd4-36374173d6d5 version: 3 local: 0 state: APPLYING flags: 1 conn_id: 60 trx_id: 36314758891 seqnos (l: 8952, g: 3339
58, s: 333957, d: 333852, ts: 4847777374835513)
2017-02-06 16:39:53 21724 [ERROR] WSREP: Failed to apply trx 333958 4 times
2017-02-06 16:39:53 21724 [ERROR] WSREP: Node consistency compromized, aborting…
2017-02-06 16:39:53 21724 [Note] WSREP: Closing send monitor…
2017-02-06 16:39:53 21724 [Note] WSREP: Closed send monitor.
2017-02-06 16:39:53 21724 [Note] WSREP: gcomm: terminating thread
2017-02-06 16:39:53 21724 [Note] WSREP: gcomm: joining thread
2017-02-06 16:39:53 21724 [Note] WSREP: gcomm: closing backend
I’m wondering why this node talks mentions ‘Slave SQL’ since I replicate to the other node in the new cluster. All nodes in the old cluster have the same server_id, and all nodes in the news cluster have another identical server_id.
Any ideas what causes this behaviour?
Matthias