server hangs in shutdown after failed trx replay
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL patches by Codership |
New
|
Undecided
|
Unassigned |
Bug Description
Server shutdown hangs in mutex lock after failed transaction replay:
#0 __lll_lock_wait () at ../nptl/
#1 0x00007f1afd9e209b in _L_lock_1006 () from /lib/x86_
#2 0x00007f1afd9e201c in __pthread_
#3 0x0000000000519076 in inline_
at /home/teemu/
#4 is_replaying_
#5 wsrep_close_
at /home/teemu/
#6 0x0000000000519377 in unireg_abort (exit_code=1) at /home/teemu/
#7 0x000000000059a05d in wsrep_mysql_parse (thd=0x49521a0,
rawbuf=
at /home/teemu/
#8 0x000000000059b9c7 in dispatch_command (command=COM_QUERY, thd=0x49521a0, packet=<optimized out>, packet_
at /home/teemu/
#9 0x000000000059bfdd in do_command (thd=0x49521a0)
at /home/teemu/
#10 0x000000000063db95 in do_handle_
at /home/teemu/
#11 0x000000000063ddac in handle_
at /home/teemu/
#12 0x00007f1afd9dfe9a in start_thread (arg=0x7f1ae810
#13 0x00007f1afd70ccbd in clone () at ../sysdeps/
#14 0x0000000000000000 in ?? ()
The reason is that thread calls unireg_abort() with thd->LOCK_wsrep_thd locked and is_replaying_