Replicating XA Transactions in MySQL 5.7, the Slave Fails With Lock Wait Timeout and the Error: "Slave SQL thread retried transaction 10 time(s) in vain, giving up. Consider raising the value of the slave_transaction_retries variable." (Doc ID 2257067.1)

Last updated on MAY 02, 2017

Applies to:

MySQL Server - Version 5.7 to 5.7 [Release 5.7]
Information in this document applies to any platform.

Symptoms

Replicating XA transactions in MySQL 5.7 sometimes causes the replication slave to stop with the following error in the SHOW SLAVE STATUS output:

Notice how the blocking_pid (the processlist id of the blocking connection) is 0.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms