← Back
Editing: rpl_wait_for_executed_gtid_set_no_timeout.test
--source include/not_group_replication_plugin.inc # WL#7796 - WAIT_FOR_EXECUTED_GTID_SET # # Bug#19179920 WAIT_FOR_EXECUTED_GTID_SET SOMETIMES DOES NOT WAIT # # This patch fixes the problem of the WAIT_FOR_EXECUTED_GTID_SET which was # not waiting incase the timeout is not specified by the user. --let $rpl_gtid_utils= 1 --source include/have_log_bin.inc --source include/have_gtid.inc --source include/master-slave.inc --connection slave --let $master_uuid= query_get_value(select SOURCE_UUID from performance_schema.replication_connection_status WHERE service_state = 'ON', SOURCE_UUID, 1) --connection master --let $gtid_wait_set= $master_uuid:4 --connection master CREATE TABLE t1 (c1 INT NOT NULL PRIMARY KEY) ENGINE=InnoDB; INSERT INTO t1 VALUES (1); --connection master1 CREATE USER `ABC`; --let $connection_id= `SELECT CONNECTION_ID()` --send --replace_result $master_uuid MASTER_UUID --eval SELECT WAIT_FOR_EXECUTED_GTID_SET('$gtid_wait_set') --connection default # Checking the waiting thread condition. --echo The connection master1 should be waiting for the WAIT_FOR_EXECUTED_GTID_SET here --let $wait_condition=SELECT COUNT(*)=1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE Id='$connection_id' AND Info Like 'SELECT WAIT_FOR_EXECUTED_GTID_SET%' --source include/wait_condition.inc # Now executing the next transaction. INSERT INTO t1 values(2); --connection master1 --replace_result $master_uuid MASTER_UUID --reap --let $wait_for_executed_gtid_set=1 --source include/sync_slave_sql_with_master.inc # CLEANUP --connection master DROP TABLE t1; DROP USER `ABC`; --source include/rpl_end.inc
Save File
Cancel