Comment 7 for bug 1208937

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote : Re: Diagnostics_area::set_error_status(THD*, uint, const char*, const char*): Assertion `! is_set() || can_overwrite_status' failed | CTAS-based | Possible lp:1052002 regression

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).