mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-36618 : galera.galera_as_slave_nonprim test: result content mismatch
Remove unnecessary sleeps and use wait_for_slave_to_stop instead. Signed-off-by: Julius Goryavsky <julius.goryavsky@mariadb.com>
This commit is contained in:
committed by
Julius Goryavsky
parent
b1eec9d8af
commit
67b6f9f285
@@ -12,7 +12,6 @@ connection node_1;
|
||||
connection node_4;
|
||||
INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
|
||||
connection node_2;
|
||||
connection node_1;
|
||||
expected_error
|
||||
1
|
||||
connection node_2;
|
||||
|
@@ -2,7 +2,7 @@
|
||||
# Test the behavior of a Galera async slave if it goes non-prim. Async replication
|
||||
# should abort with an error but it should be possible to restart it.
|
||||
#
|
||||
# The galera/galera_2node_slave.cnf describes the setup of the nodes
|
||||
# The galera_3nodes_as_slave.cnf describes the setup of the nodes
|
||||
#
|
||||
|
||||
--source include/have_innodb.inc
|
||||
@@ -45,9 +45,8 @@ SET GLOBAL wsrep_provider_options = 'gmcast.isolate=1';
|
||||
INSERT INTO t1 VALUES (1),(2),(3),(4),(5);
|
||||
|
||||
--connection node_2
|
||||
--sleep 5
|
||||
wait_for_slave_to_stop;
|
||||
--let $value = query_get_value(SHOW SLAVE STATUS, Last_SQL_Error, 1)
|
||||
--connection node_1
|
||||
--disable_query_log
|
||||
--eval SELECT "$value" IN ("Error 'Unknown command' on query. Default database: 'test'. Query: 'BEGIN'", "Node has dropped from cluster") AS expected_error
|
||||
--enable_query_log
|
||||
@@ -75,7 +74,6 @@ START SLAVE;
|
||||
--connection node_4
|
||||
DROP TABLE t1;
|
||||
|
||||
--sleep 2
|
||||
--connection node_2
|
||||
--let $wait_condition = SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't1';
|
||||
--source include/wait_condition.inc
|
||||
|
Reference in New Issue
Block a user