MySQL Error Message
Statement is unsafe because it is being used inside a XA
transaction. Concurrent XA transactions may deadlock on replicas
when replicated using statements.
Reason for the Error
ER_BINLOG_UNSAFE_XA was added in
8.0.2.