mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
b513e37117
Note: At least one test is unstable, failing with the following: ./mtr --mysqld=--innodb-purge-threads=9 --big-test --no-reorder \ galera.galera_parallel_autoinc_largetrx galera.galera_var_slave_threads The result difference is dependent on innodb_purge_threads.
125 lines
4 KiB
Text
125 lines
4 KiB
Text
connection node_1;
|
|
CREATE TABLE t1 (f1 INT PRIMARY KEY) Engine=InnoDB;
|
|
CREATE TABLE t2 (f1 INT AUTO_INCREMENT PRIMARY KEY) Engine=InnoDB;
|
|
connection node_2;
|
|
SET GLOBAL wsrep_slave_threads = 0;
|
|
Warnings:
|
|
Warning 1292 Truncated incorrect wsrep_slave_threads value: '0'
|
|
SHOW WARNINGS;
|
|
Level Code Message
|
|
Warning 1292 Truncated incorrect wsrep_slave_threads value: '0'
|
|
SELECT @@wsrep_slave_threads = 1;
|
|
@@wsrep_slave_threads = 1
|
|
1
|
|
SET GLOBAL wsrep_slave_threads = 1;
|
|
SELECT COUNT(*) FROM INFORMATION_SCHEMA.PROCESSLIST
|
|
WHERE USER = 'system user' AND NOT STATE <=> 'InnoDB background thread';
|
|
COUNT(*)
|
|
2
|
|
SELECT COUNT(*) FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND STATE LIKE '%wsrep aborter%';
|
|
COUNT(*)
|
|
1
|
|
SET GLOBAL wsrep_slave_threads = 64;
|
|
connection node_1;
|
|
INSERT INTO t1 VALUES (1);
|
|
connection node_2;
|
|
SELECT COUNT(*) FROM t1;
|
|
COUNT(*)
|
|
1
|
|
SELECT COUNT(*) - @@wsrep_slave_threads FROM INFORMATION_SCHEMA.PROCESSLIST
|
|
WHERE USER = 'system user' AND NOT STATE <=> 'InnoDB background thread';
|
|
COUNT(*) - @@wsrep_slave_threads
|
|
1
|
|
SELECT COUNT(*) FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND STATE LIKE '%wsrep aborter%';
|
|
COUNT(*)
|
|
1
|
|
SET GLOBAL wsrep_slave_threads = 1;
|
|
connection node_1;
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
INSERT INTO t2 VALUES (DEFAULT);
|
|
connection node_2;
|
|
SELECT COUNT(*) FROM t2;
|
|
COUNT(*)
|
|
64
|
|
SELECT COUNT(*) - @@wsrep_slave_threads FROM INFORMATION_SCHEMA.PROCESSLIST
|
|
WHERE USER = 'system user' AND NOT STATE <=> 'InnoDB background thread';
|
|
COUNT(*) - @@wsrep_slave_threads
|
|
1
|
|
SELECT COUNT(*) FROM INFORMATION_SCHEMA.PROCESSLIST WHERE USER = 'system user' AND STATE LIKE '%wsrep aborter%';
|
|
COUNT(*)
|
|
1
|
|
SET GLOBAL wsrep_slave_threads = 1;
|
|
DROP TABLE t1;
|
|
DROP TABLE t2;
|
|
#
|
|
# lp:1372840 - Changing wsrep_slave_threads causes future connections to hang
|
|
#
|
|
connection node_1;
|
|
CREATE TABLE t1 (i INT AUTO_INCREMENT PRIMARY KEY) ENGINE=INNODB;
|
|
connection node_2;
|
|
SET GLOBAL wsrep_slave_threads = 4;
|
|
SET GLOBAL wsrep_slave_threads = 1;
|
|
DROP TABLE t1;
|
|
# End of tests
|