Slave disconnect cause the growth of the number of threads on master
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
Expired
|
Undecided
|
Unassigned | ||
5.1 |
Won't Fix
|
Undecided
|
Unassigned | ||
5.5 |
Expired
|
Undecided
|
Unassigned | ||
5.6 |
Expired
|
Undecided
|
Unassigned |
Bug Description
Run following test case with --repeat=10, you will see that after number of repeats the number of threads increased.
test:
--source include/
create table t (a int);
insert into t values (1);
drop table t;
--source include/rpl_end.inc
SHOW PROCESSLIST;
nclude/
Warnings:
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
[connection master]
create table t (a int);
insert into t values (1);
drop table t;
include/rpl_end.inc
SHOW PROCESSLIST;
Id User Host db Command Time State Info Rows_sent Rows_examined
5 root localhost:56390 NULL Binlog Dump 38 Master has sent all binlog to slave; waiting for binlog to be updated NULL 0 0
14 root localhost:56400 NULL Binlog Dump 34 Master has sent all binlog to slave; waiting for binlog to be updated NULL 0 0
23 root localhost:56410 NULL Binlog Dump 29 Master has sent all binlog to slave; waiting for binlog to be updated NULL 0 0
32 root localhost:56420 NULL Binlog Dump 25 Master has sent all binlog to slave; waiting for binlog to be updated NULL 0 0
41 root localhost:56430 NULL Binlog Dump 21 Master has sent all binlog to slave; waiting for binlog to be updated NULL 0 0
50 root localhost:56440 NULL Binlog Dump 16 Master has sent all binlog to slave; waiting for binlog to be updated NULL 0 0
59 root localhost:56450 NULL Binlog Dump 12 Master has sent all binlog to slave; waiting for binlog to be updated NULL 0 0
68 root localhost:56462 NULL Binlog Dump 8 Master has sent all binlog to slave; waiting for binlog to be updated NULL 0 0
77 root localhost:56473 NULL Binlog Dump 4 Master has sent all binlog to slave; waiting for binlog to be updated NULL 0 0
83 root localhost test Query 0 init SHOW PROCESSLIST 0 0
86 root localhost:56483 NULL Binlog Dump 0 Master has sent all binlog to slave; waiting for binlog to be updated NULL 0 0
87 root localhost:56484 test Sleep 0 NULL 0 0
88 root localhost:56485 test Sleep 0 NULL 1 0
rpl.aaa 'stmt' [ pass ] 822
-------
In particular this cause test suite to fail with thread pool and low maximum number of threads.
This appears to be by design, see kill_zombie_ dump_threads( ).