wsrep-slave-threads is counted towards max_connections
Bug #1315588 reported by
Raghavendra D Prabhu
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
MySQL patches by Codership |
New
|
Undecided
|
Unassigned | |||
5.5 |
New
|
Undecided
|
Unassigned | |||
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC | Status tracked in 5.6 | |||||
5.5 |
Fix Released
|
Medium
|
Unassigned | |||
5.6 |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Originally reported here, https:/
Easy to reproduce.
/pxc/bin/mysqld --defaults-
starting new mysql client gives "ERROR 1040 (HY000): Too many connections"
Related branches
lp:~percona-core/percona-xtradb-cluster/bug1315588
- Alexey Kopytov (community): Approve
-
Diff: 37 lines (+13/-7)1 file modifiedsql/mysqld.cc (+13/-7)
To post a comment you must log in.
This is because of:
mysql_ mutex_lock( &LOCK_connectio n_count) ; count; mutex_unlock( &LOCK_connectio n_count) ;
++connection_
mysql_
in start_wsrep_THD.
and subsequent check:
if (*thd-> scheduler- >connection_ count >= thd->scheduler- >max_connection s + 1 || abort_loop)
*
in create_new_thread.