pxc node acting as async slave fails to replicate when binlog_format=MIXED
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Description:
Given a PXC node acting as an async slave to a master, the PXC node fails to replicate STATEMENT DML when both nodes operating in binlog_
SHOW SLAVE STATUS error message:
*******
Replicate
Replicate_
*snip*
Error message in error log:
2017-02-08 08:30:10 13513 [Warning] WSREP: SQL statement was ineffective, THD: 3, buf: 216
schema: (null)
QUERY: (null)
=> Skipping replication
2017-02-08 08:30:10 13513 [Note] WSREP: cluster conflict due to certification failure for threads:
2017-02-08 08:30:10 13513 [Note] WSREP: Victim thread:
THD: 3, mode: local, state: executing, conflict: cert failure, seqno: -1
SQL: (null)
2017-02-08 08:30:10 13513 [Warning] Slave SQL: Error in Xid_log_event: Commit could not be completed, 'Deadlock found when trying to get lock; try restarting transaction', Error_code: 1213
2017-02-08 08:30:10 13513 [ERROR] Slave SQL: Node has dropped from cluster, Error_code: 1047
OS: Ubuntu Trusty
PXC Version: PXC 5.6.34-79.1-56-log
Test Case:
- configure a galera node as an async slave to normal MySQL master
- ensure galera node is running as binlog_format=MIXED
- on master, execute:
root@master:~# mysql -e 'create database inplace_
- on pxc slave node, validate insert replicated: mysql -e 'select * FROM inplace_
Expected results:
###DDL and DML replicated fine
mysql -e 'select * FROM inplace_
+----+
| id |
+----+
| 0 |
+----+
Actual results:
DDL replicates fine using TOI.
Obscure error message about skipping replication on the INSERT statement.
slave error 'Slave SQL: Node has dropped from cluster, Error_code: 1047'
I've attached a log file with my.cnf of PXC node and output log.
I actually thought the expected result would be an error on startup of not using RBR, but apparently that has changed in some recent release.
I tested on upstream galera, and everything replicates fine in MIXED replication. (attaching log)