Comment 3 for bug 1315588

Revision history for this message
Philip Stoev (philip-stoev-f) wrote :

MTR test case. Please push when fixing the bug

#
# LP:1315588 wsrep-slave-threads is counted towards max_connections
#

--source include/galera_cluster.inc
--source include/have_innodb.inc

--let $max_connections_orig = `SELECT @@max_connections`
--let $wsrep_slave_threads_orig = `SELECT @@wsrep_slave_threads`

SET GLOBAL max_connections = 5;
SET GLOBAL wsrep_slave_threads = 10;

SELECT COUNT(*) > 5 FROM INFORMATION_SCHEMA.PROCESSLIST;

--let $galera_connection_name = node_1a
--let $galera_server_number = 1
--source include/galera_connect.inc

--connection node_1a
SELECT 1 FROM DUAL;

--eval SET GLOBAL max_connections = $max_connections_orig
--eval SET GLOBAL wsrep_slave_threads = $wsrep_slave_threads_orig