Actually, it is a regression of https://bugs.launchpad.net/codership-mysql/+bug/1162421 which was fixed precisely for this.
==========================================
(gdb) frame 8 #8 0x0000000000582e1f in Diagnostics_area::set_error_status (this=0x2eec9f0, thd=thd@entry=0x2ee9970, sql_errno_arg=sql_errno_arg@entry=1213, message_arg=message_arg@entry=0x7f12e3166610 "Deadlock found when trying to get lock; try restarting transaction", sqlstate=sqlstate@entry=0xaddd27 "40001") at /media/Tintin/Work/code/percona-xtradb-cluster/trunk/Percona-Server/sql/sql_error.cc:422 422 DBUG_ASSERT(! is_set() || can_overwrite_status); (gdb) print thd->wsrep_conflict_state $1 = CERT_FAILURE
============================================
Attaching thd.txt (containing thd dump).
Actually, it is a regression of https:/ /bugs.launchpad .net/codership- mysql/+ bug/1162421 which was fixed precisely for this.
======= ======= ======= ======= ======= =======
(gdb) frame 8 area::set_ error_status (this=0x2eec9f0, thd=thd@ entry=0x2ee9970 , sql_errno_ arg=sql_ errno_arg@ entry=1213, arg=message_ arg@entry= 0x7f12e3166610 "Deadlock found when trying to get lock; try restarting transaction", sqlstate= sqlstate@ entry=0xaddd27 "40001") Tintin/ Work/code/ percona- xtradb- cluster/ trunk/Percona- Server/ sql/sql_ error.cc: 422 status) ; conflict_ state
#8 0x0000000000582e1f in Diagnostics_
message_
at /media/
422 DBUG_ASSERT(! is_set() || can_overwrite_
(gdb) print thd->wsrep_
$1 = CERT_FAILURE
======= ======= ======= ======= ======= ======= ==
Attaching thd.txt (containing thd dump).