My Oracle Support Banner

Replication Fails After XA Transaction Encounters Lock Wait Timeout Or Deadlock: "Error 'XAER_RMFAIL: The command cannot be executed when global transaction is in the ACTIVE state' on query. Default database: 'db1'. Query: 'XA START X'31',X'',1'" (Doc ID 2210524.1)

Last updated on MARCH 24, 2019

Applies to:

MySQL Server - Version 5.7 and later
Information in this document applies to any platform.


When attempting to use XA transactions on the master, the following error occurs on the replication slave:


The replication slave is using MySQL Server 5.7.16 or earlier.


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.