mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-8294: Inconsistent behavior of slave parallel threads at runtime
There were some cases where the slave SQL thread could stop without the pool of parallel replication worker threads being correctly de-activated.
This commit is contained in:
@@ -12,6 +12,23 @@ Note 1592 Unsafe statement written to the binary log using statement format sinc
|
||||
include/wait_for_slave_param.inc [Seconds_Behind_Master]
|
||||
Seconds_Behind_Master should be zero here because the slave is fully caught up and idle.
|
||||
Seconds_Behind_Master = '0'
|
||||
*** MDEV-8294: Inconsistent behavior of slave parallel threads at runtime ***
|
||||
INSERT INTO t1 VALUES (10,0);
|
||||
SET sql_log_bin= 0;
|
||||
DELETE FROM t1 WHERE a=10;
|
||||
SET sql_log_bin= 1;
|
||||
INSERT INTO t1 VALUES (10,0);
|
||||
SELECT * FROM t1 WHERE a >= 10 ORDER BY a;
|
||||
a b
|
||||
10 0
|
||||
include/wait_for_slave_sql_error.inc [errno=1062]
|
||||
SET GLOBAL slave_parallel_threads=8;
|
||||
STOP SLAVE;
|
||||
SET GLOBAL sql_slave_skip_counter= 1;
|
||||
include/start_slave.inc
|
||||
SELECT * FROM t1 WHERE a >= 10 ORDER BY a;
|
||||
a b
|
||||
10 0
|
||||
include/stop_slave.inc
|
||||
SET GLOBAL slave_parallel_threads=@old_parallel_threads;
|
||||
include/start_slave.inc
|
||||
|
Reference in New Issue
Block a user