Commit cd87e4e1 authored by Jan Lindström's avatar Jan Lindström

MDEV-13549: Timeout in wait_condition.inc for PROCESSLIST

Use wsrep sync wait instead of unnecessary waits and
correct slave setting.
parent bc511443
......@@ -15,7 +15,6 @@ MW-328A : MDEV-17847 Galera test failure on MW-328[A|B|C]
MW-328B : MDEV-17847 Galera test failure on MW-328[A|B|C]
MW-328C : MDEV-17847 Galera test failure on MW-328[A|B|C]
MW-329 : wsrep_local_replays not stable
MW-336 : MDEV-13549 Timeout in wait_condition.inc for PROCESSLIST
MW-416 : MDEV-13549 Galera test failures
MW-44 : MDEV-15809 Test failure on galera.MW-44
galera_account_management : MariaDB 10.0 does not support ALTER USER
......
......@@ -5,11 +5,13 @@ SET GLOBAL wsrep_slave_threads = 10;
SET GLOBAL wsrep_slave_threads = 1;
# Wait 10 slave threads to start 1
connection node_2;
# Generate 12 replication events
SET SESSION wsrep_sync_wait=15;
# Generate 100 replication events
connection node_1;
SET SESSION wsrep_sync_wait=15;
SELECT COUNT(*) FROM t1;
COUNT(*)
13
101
# Wait 9 slave threads to exit 1
SET GLOBAL wsrep_slave_threads = 10;
# Wait 10 slave threads to start 2
......@@ -17,23 +19,21 @@ SET GLOBAL wsrep_slave_threads = 20;
# Wait 20 slave threads to start 3
SET GLOBAL wsrep_slave_threads = 1;
connection node_2;
# Generate 40 replication events
# Generate 100 replication events
connection node_1;
SELECT COUNT(*) FROM t1;
COUNT(*)
53
201
# Wait 10 slave threads to exit 3
SET GLOBAL wsrep_slave_threads = 10;
SET GLOBAL wsrep_slave_threads = 0;
Warnings:
Warning 1292 Truncated incorrect wsrep_slave_threads value: '0'
SET GLOBAL wsrep_slave_threads = 1;
# Wait 10 slave threads to start 3
connection node_2;
# Generate 12 replication events
# Generate 100 replication events
connection node_1;
SELECT COUNT(*) FROM t1;
COUNT(*)
65
301
# Wait 10 slave threads to exit 4
connection node_1;
DROP TABLE t1;
......@@ -19,13 +19,14 @@ SET GLOBAL wsrep_slave_threads = 1;
--source include/wait_condition.inc
--connection node_2
SET SESSION wsrep_sync_wait=15;
# Wait until inserts are replicated
--let $wait_condition = SELECT COUNT(*) = 1 FROM t1;
--source include/wait_condition.inc
--echo # Generate 12 replication events
--echo # Generate 100 replication events
--disable_query_log
--disable_result_log
--let $count = 12
--let $count = 100
while ($count)
{
INSERT INTO t1 VALUES (1);
......@@ -35,9 +36,7 @@ while ($count)
--enable_query_log
--connection node_1
# Wait until inserts are replicated
--let $wait_condition = SELECT COUNT(*) = 13 FROM t1;
--source include/wait_condition.inc
SET SESSION wsrep_sync_wait=15;
SELECT COUNT(*) FROM t1;
......@@ -61,10 +60,10 @@ SET GLOBAL wsrep_slave_threads = 20;
SET GLOBAL wsrep_slave_threads = 1;
--connection node_2
--echo # Generate 40 replication events
--echo # Generate 100 replication events
--disable_query_log
--disable_result_log
--let $count = 40
--let $count = 100
while ($count)
{
INSERT INTO t1 VALUES (1);
......@@ -74,11 +73,6 @@ while ($count)
--enable_result_log
--connection node_1
# Wait until inserts are replicated
--let $wait_condition = SELECT COUNT(*) = 53 FROM t1;
--source include/wait_condition.inc
SELECT COUNT(*) FROM t1;
--echo # Wait 10 slave threads to exit 3
......@@ -87,7 +81,7 @@ SELECT COUNT(*) FROM t1;
--source include/wait_condition.inc
SET GLOBAL wsrep_slave_threads = 10;
SET GLOBAL wsrep_slave_threads = 0;
SET GLOBAL wsrep_slave_threads = 1;
--echo # Wait 10 slave threads to start 3
--let $wait_timeout=600
......@@ -95,10 +89,10 @@ SET GLOBAL wsrep_slave_threads = 0;
--source include/wait_condition.inc
--connection node_2
--echo # Generate 12 replication events
--echo # Generate 100 replication events
--disable_query_log
--disable_result_log
--let $count = 12
--let $count = 100
while ($count)
{
INSERT INTO t1 VALUES (1);
......@@ -108,10 +102,6 @@ while ($count)
--enable_query_log
--connection node_1
# Wait until inserts are replicated
--let $wait_condition = SELECT COUNT(*) = 65 FROM t1;
--source include/wait_condition.inc
SELECT COUNT(*) FROM t1;
--echo # Wait 10 slave threads to exit 4
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment