| 1 |
# MDEV-35465 Async replication stops working on Galera async replica node |
| 2 |
# when parallel replication is enabled |
| 3 |
|
| 4 |
--source include/have_innodb.inc |
| 5 |
--source include/have_log_bin.inc |
| 6 |
--source include/galera_cluster.inc |
| 7 |
--source include/have_debug_sync.inc |
| 8 |
|
| 9 |
# Node 3 is not a Galera node, use it as a master |
| 10 |
--connect master, 127.0.0.1, root, , test, $NODE_MYPORT_3 |
| 11 |
--connect node_1_ctrl, 127.0.0.1, root, , test, $NODE_MYPORT_1 |
| 12 |
|
| 13 |
--connection node_1 |
| 14 |
--disable_query_log |
| 15 |
--eval CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_USER='root', MASTER_SSL_VERIFY_SERVER_CERT=0, MASTER_PORT=$NODE_MYPORT_3; |
| 16 |
--enable_query_log |
| 17 |
START SLAVE; |
| 18 |
|
| 19 |
--connection master |
| 20 |
CREATE TABLE t1 (f1 INT PRIMARY KEY) ENGINE=InnoDB; |
| 21 |
|
| 22 |
--connection node_1 |
| 23 |
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't1' |
| 24 |
--source include/wait_condition.inc |
| 25 |
|
| 26 |
# |
| 27 |
--let debug_dbug_orig = `SELECT @@GLOBAL.debug_dbug` |
| 28 |
SET GLOBAL debug_dbug = '+d,rpl_parallel_simulate_temp_err_xid,sync.wsrep_retry_event_group'; |
| 29 |
|
| 30 |
--connection master |
| 31 |
INSERT INTO t1 VALUES (1); |
| 32 |
|
| 33 |
--connection node_1_ctrl |
| 34 |
SET debug_sync = 'now WAIT_FOR sync.wsrep_retry_event_group_reached'; |
| 35 |
--eval SET GLOBAL debug_dbug = '$debug_dbug_orig' |
| 36 |
SET debug_sync = 'now SIGNAL signal.wsrep_retry_event_group'; |
| 37 |
|
| 38 |
--let $wait_condition = SELECT COUNT(*) = 1 FROM t1; |
| 39 |
--source include/wait_condition.inc |
| 40 |
|
| 41 |
--connection node_1 |
| 42 |
SET debug_sync = 'RESET'; |
| 43 |
|
| 44 |
--connection master |
| 45 |
DROP TABLE t1; |
| 46 |
|
| 47 |
--connection node_1 |
| 48 |
--let $wait_condition = SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = 't1' |
| 49 |
--source include/wait_condition.inc |
| 50 |
|
| 51 |
STOP SLAVE; |