Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.4(EOL)
-
None
Description
Async replication Galera node crashes when the node shuts down while master node has active OLTP load. The crash only occurs when the node is configured with multiple slave_parallel_threads
As per Jan Lindström, handle_rpl_parallel_thread should make sure we do not go wsrep_after_statement too early on shutdown
10.4.30 9f909e546e14ed9b529cddc2c1a5c2aa61d57e56 |
(gdb) bt
|
#0 __pthread_kill (threadid=<optimized out>, signo=signo@entry=6) at ../sysdeps/unix/sysv/linux/pthread_kill.c:56
|
#1 0x000055a3a3e4603d in my_write_core (sig=sig@entry=6) at /test/10.4_dbg/mysys/stacktrace.c:386
|
#2 0x000055a3a3655472 in handle_fatal_signal (sig=6) at /test/10.4_dbg/sql/signal_handler.cc:372
|
#3 <signal handler called>
|
#4 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
|
#5 0x000014cb2629c859 in __GI_abort () at abort.c:79
|
#6 0x000014cb2629c729 in __assert_fail_base (fmt=0x14cb26432588 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x55a3a41332b8 "!(thd->rgi_slave && thd->rgi_slave->did_mark_start_commit)",
|
file=0x55a3a41323f3 "/test/10.4_dbg/sql/handler.cc", line=1906, function=<optimized out>) at assert.c:92
|
#7 0x000014cb262adfd6 in __GI___assert_fail (assertion=assertion@entry=0x55a3a41332b8 "!(thd->rgi_slave && thd->rgi_slave->did_mark_start_commit)",
|
file=file@entry=0x55a3a41323f3 "/test/10.4_dbg/sql/handler.cc", line=line@entry=1906, function=function@entry=0x55a3a4133240 "int ha_rollback_trans(THD*, bool)") at assert.c:101
|
#8 0x000055a3a3659af2 in ha_rollback_trans (thd=thd@entry=0x14ca6c000d28, all=all@entry=true) at /test/10.4_dbg/sql/handler.cc:1906
|
#9 0x000055a3a3516666 in trans_rollback (thd=0x14ca6c000d28) at /test/10.4_dbg/sql/transaction.cc:342
|
#10 0x000055a3a393098c in Wsrep_client_service::bf_rollback (this=0x14ca6c006da0) at /test/10.4_dbg/include/my_pthread.h:376
|
#11 0x000055a3a3f7b14a in wsrep::client_state::after_statement (this=this@entry=0x14ca6c006db8) at /test/10.4_dbg/wsrep-lib/src/client_state.cpp:274
|
#12 0x000055a3a35687c5 in wsrep_after_statement (thd=0x14ca6c000d28) at /test/10.4_dbg/sql/sql_class.h:5041
|
#13 rpt_handle_event (qev=qev@entry=0x14caf8ccb148, rpt=rpt@entry=0x14caf800d050) at /test/10.4_dbg/sql/rpl_parallel.cc:65
|
#14 0x000055a3a356c8f0 in handle_rpl_parallel_thread (arg=0x14caf800d050) at /test/10.4_dbg/sql/rpl_parallel.cc:1381
|
#15 0x000014cb267ad609 in start_thread (arg=<optimized out>) at pthread_create.c:477
|
#16 0x000014cb26399133 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
|