|
I found an issue and a test case that causes mysql_shutdown in mysqltest client to fail as described in this ticket.
The MTR test to reproduce:
--source include/galera_cluster.inc
|
--source include/have_debug_sync.inc
|
|
--let $node_1=node_1
|
--let $node_2=node_2
|
--source include/auto_increment_offset_save.inc
|
|
--connection node_2
|
SET GLOBAL debug_dbug="+d,simulate_shutdown_client_slow";
|
--source include/restart_mysqld.inc
|
|
--source include/auto_increment_offset_restore.inc
|
and this DBUG_EXECUTE_IF in sql_parse.cc:
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
|
index 0261e7480f1..71d228f3338 100644
|
--- a/sql/sql_parse.cc
|
+++ b/sql/sql_parse.cc
|
@@ -2206,6 +2206,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
|
my_eof(thd);
|
kill_mysql(thd);
|
error=TRUE;
|
+ DBUG_EXECUTE_IF("simulate_shutdown_client_slow", my_sleep(1000000););
|
break;
|
}
|
#endif
|
I tested this in 10.4, but I presume it's the same issue. I could take this ticket over, since it is stalled and I have a tentative fix.
|