File tree Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Expand file tree Collapse file tree 2 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 44
44
1
45
45
2
46
46
include/stop_slave.inc
47
- START SLAVE UNTIL master_gtid_pos = "1-10-100,2-20-200";
47
+ START SLAVE UNTIL master_gtid_pos = "1-10-100,2-20-200,0-1-300 ";
48
48
include/wait_for_slave_to_start.inc
49
49
Using_Gtid = 'Current_Pos'
50
50
Until_Condition = 'Gtid'
51
+ INSERT INTO t1 VALUES (3);
52
+ DELETE FROM t1 WHERE a=3;
51
53
include/stop_slave.inc
52
- include/start_slave.inc
53
54
*** Test UNTIL condition in an earlier binlog than the start GTID. ***
54
- include/stop_slave.inc
55
55
SET gtid_domain_id = 1;
56
56
INSERT INTO t1 VALUES (3);
57
57
SET gtid_domain_id = 2;
Original file line number Diff line number Diff line change @@ -73,19 +73,29 @@ SELECT * FROM t1 ORDER BY a;
73
73
74
74
# Test showing the UNTIL condition in SHOW SLAVE STATUS.
75
75
--source include/stop_slave.inc
76
- START SLAVE UNTIL master_gtid_pos = "1-10-100,2-20-200";
76
+ START SLAVE UNTIL master_gtid_pos = "1-10-100,2-20-200,0-1-300 ";
77
77
--source include/wait_for_slave_to_start.inc
78
78
--let $status_items= Using_Gtid,Until_Condition
79
79
--source include/show_slave_status.inc
80
80
81
81
# Clear the UNTIL condition.
82
+ # Note that we need to wait for a transaction to get through from the master.
83
+ # Otherwise the IO thread may still be in get_master_version_and_clock()
84
+ # (wait_for_slave_to_start.inc returns as soon as the IO thread is connected),
85
+ # and we can get test failures from warnings in the log about IO thread being
86
+ # killed in the middle of setting @@gtid_strict_mode or similar (MDEV-7940).
87
+ --connection server_1
88
+ INSERT INTO t1 VALUES (3);
89
+ DELETE FROM t1 WHERE a=3;
90
+ --save_master_pos
91
+
92
+ --connection server_2
93
+ --sync_with_master
82
94
--source include/stop_slave.inc
83
- --source include/start_slave.inc
84
95
85
96
86
97
--echo *** Test UNTIL condition in an earlier binlog than the start GTID. ***
87
98
--connection server_2
88
- --source include/stop_slave.inc
89
99
90
100
--connection server_1
91
101
SET gtid_domain_id = 1;
You can’t perform that action at this time.
0 commit comments