mirror of
https://github.com/MariaDB/server.git
synced 2025-02-09 23:24:11 +01:00
![Andrei Elkin](/assets/img/avatar_default.png)
Parallel slave server shutdown found to be hanging in close_connections() triggered by shutdown due to a slave worker thread would not be notified to exit in case the worker was sitting idle. Fixed with destroying the worker pool earlier that is in slave_prepare_for_shutdown() when all their driver threads have already left. A test file is added to simulate the bug condition as well as check multi-sourced and not-idle worker cases.
19 lines
344 B
INI
19 lines
344 B
INI
!include suite/rpl/rpl_1slave_base.cnf
|
|
!include include/default_client.cnf
|
|
|
|
[mysqld.1]
|
|
log-slave-updates
|
|
gtid-domain-id=1
|
|
|
|
[mysqld.2]
|
|
log-slave-updates
|
|
gtid-domain-id=2
|
|
|
|
[mysqld.3]
|
|
log-slave-updates
|
|
gtid-domain-id=3
|
|
slave_parallel_threads=2
|
|
|
|
[ENV]
|
|
SERVER_MYPORT_3= @mysqld.3.port
|
|
SERVER_MYSOCK_3= @mysqld.3.socket
|