Details
-
Bug
-
Status: Open (View Workflow)
-
Minor
-
Resolution: Unresolved
-
11.4
Description
|
rpl_semi_sync_slave_send_ack.test |
--connect (master, 127.0.0.1, root, , , $SERVER_MYPORT_1)
|
SET @@GLOBAL.rpl_semi_sync_master_enabled= 1; |
RESET MASTER;
|
|
|
--connect (master_other, 127.0.0.1, root, , , $SERVER_MYPORT_2)
|
SET @@GLOBAL.rpl_semi_sync_master_enabled= 1; # MDEV-32947 |
RESET MASTER;
|
|
|
--connect (slave, 127.0.0.1, root, , , $SERVER_MYPORT_3)
|
--disable_warnings
|
SET @@GLOBAL.gtid_slave_pos= ''; |
--enable_warnings
|
--replace_result $SERVER_MYPORT_1 SERVER_MYPORT_1
|
eval CHANGE MASTER TO |
master_host='127.0.0.1', master_port=$SERVER_MYPORT_1, master_user='root'; |
SET @@SESSION.default_master_connection= 'other'; |
--replace_result $SERVER_MYPORT_2 SERVER_MYPORT_2
|
eval CHANGE MASTER TO |
master_host='127.0.0.1', master_port=$SERVER_MYPORT_2, master_user='root'; |
SET @@GLOBAL.rpl_semi_sync_slave_enabled= 1; |
|
|
|
|
START SLAVE ''; |
--connection master
|
--let $status_var= Rpl_semi_sync_master_clients |
--let $status_var_value= 1 |
--source include/wait_for_status_var.inc |
|
|
CREATE TABLE t (a INT); |
DROP TABLE t; |
--sync_slave_with_master
|
|
|
SHOW STATUS LIKE 'Rpl_semi_sync_slave_send_ack'; #=> 2 |
|
|
START SLAVE IO_THREAD;
|
--source include/wait_for_slave_io_to_start.inc
|
SHOW STATUS LIKE 'Rpl_semi_sync_slave_send_ack'; #=> Expected: 2; Actual: 0 |
|
|
|
|
--source include/stop_slave_io.inc
|
RESET SLAVE ALL; |
SET @@SESSION.default_master_connection= ''; |
--source include/stop_slave.inc
|
RESET SLAVE ALL; |
SET @@GLOBAL.rpl_semi_sync_slave_enabled= 0; |
--disconnect slave
|
|
|
--connection master
|
SET @@GLOBAL.rpl_semi_sync_master_enabled= 0; |
--disconnect master
|
|
|
--connection master_other
|
SET @@GLOBAL.rpl_semi_sync_master_enabled= 0; # MDEV-32947 |
--disconnect master_other |
Attachments
Issue Links
- relates to
-
MDEV-32947 Async conflicts with semi-sync in multi-source
-
- In Review
-
-
MDEV-39336 With --init-rpl-role=SLAVE, Status Variable `Rpl_status` is always updated by the first connection to change state
-
- Open
-
-
MDEV-40941 Migrate @@rpl_semi_sync_slave_enabled to per-connection
-
- Open
-
- split from
-
MDEV-32947 Async conflicts with semi-sync in multi-source
-
- In Review
-