mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
e02d162f79
The issue of the current bug is unguarded access to mi->slave_running by the shutdown thread calling end_slave() that is bug#29968 (alas happened not to be cross-linked with the current bug) Fixed: with removing the unguarded read of the running status and perform reading it in terminate_slave_thread() at time run_lock is taken (mostly bug#29968 backporting, still with some improvements over that patch - see the error reporting from terminate_slave_thread()). Issue of bug#38716 is fixed here for 5.0 branch as well. Note: There has been a separate artifact identified - a race condition between init_slave() and end_slave() - reported as Bug#44467.
10 lines
352 B
Text
10 lines
352 B
Text
# Testing replication threads stopping concurrency issue
|
|
# at the server shutdown
|
|
# Related bugs: bug#38694, bug#29968, bug#25306
|
|
# The test checks if a delay at the termination phase of slave threads
|
|
# DBUG_EXECUTE_IF("simulate_slave_delay_at_terminate_bug38694", sleep(5););
|
|
# could cause any issue.
|
|
|
|
source include/master-slave.inc;
|
|
|
|
# End of tests
|