Debian Codegraph @

mysql-test/suite/rpl_gtid/r/rpl_gtid_sql_until_before_after.result

raw
1 include/master-slave.inc
2 Warnings:
3 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
4 Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
5 [connection master]
6 CREATE TABLE t1(c1 INTEGER) ENGINE= Innodb;
7 include/sync_slave_sql_with_master.inc
8 [connection slave]
9 include/stop_slave.inc
10 [connection master]
11 INSERT INTO t1 VALUES(2);
12 INSERT INTO t1 VALUES(3);
13 INSERT INTO t1 VALUES(4);
14 INSERT INTO t1 VALUES(5);
15 INSERT INTO t1 VALUES(6);
16 INSERT INTO t1 VALUES(7);
17 INSERT INTO t1 VALUES(8);
18 INSERT INTO t1 VALUES(9);
19 INSERT INTO t1 VALUES(10);
20 [connection slave]
21 START SLAVE UNTIL SQL_BEFORE_GTIDS= "MASTER_UUID:4-5", SOURCE_LOG_FILE= 'foo.bin', SOURCE_LOG_POS= 100;
22 ERROR HY000: Incorrect parameter or combination of parameters for START REPLICA UNTIL
23 START SLAVE SQL_THREAD UNTIL SQL_BEFORE_GTIDS= "MASTER_UUID:4-5", SOURCE_LOG_FILE= 'foo.bin', SOURCE_LOG_POS= 100;
24 ERROR HY000: Incorrect parameter or combination of parameters for START REPLICA UNTIL
25 START SLAVE IO_THREAD UNTIL SQL_BEFORE_GTIDS= "MASTER_UUID:4-5", SOURCE_LOG_FILE= 'foo.bin', SOURCE_LOG_POS= 100;
26 ERROR HY000: Incorrect parameter or combination of parameters for START REPLICA UNTIL
27 START SLAVE FOO UNTIL SQL_BEFORE_GTIDS= "MASTER_UUID:4-5";
28 ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FOO UNTIL SQL_BEFORE_GTIDS= "MASTER_UUID:4-5"' at line 1
29 Check that START SLAVE IO_THREAD UNTIL ... maintains old behaviour, condition is ignored.
30 START SLAVE IO_THREAD UNTIL SQL_BEFORE_GTIDS= "MASTER_UUID:4-5";
31 Warnings:
32 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
33 Note 1279 SQL thread is not to be started so UNTIL options are ignored
34 Wait until IO Thread reads all master binlog and stop slave.
35 include/wait_for_slave_param.inc [Retrieved_Gtid_Set]
36 include/stop_slave_io.inc
37 SQL thread must stop *before* INSERT 4
38 START SLAVE SQL_THREAD UNTIL SQL_BEFORE_GTIDS= "MASTER_UUID:4-5";
39 Warnings:
40 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
41 include/wait_for_slave_sql_to_stop.inc
42 include/assert.inc [Rows until 3 in t1 must be replicated now]
43 SQL thread must stop *after* INSERT 5
44 START SLAVE SQL_THREAD UNTIL SQL_AFTER_GTIDS= "MASTER_UUID:4-5";
45 include/wait_for_slave_sql_to_stop.inc
46 include/assert.inc [Rows until 5 in t1 must be replicated now]
47 SQL thread must stop *before* INSERT 6
48 START SLAVE SQL_THREAD, IO_THREAD UNTIL SQL_BEFORE_GTIDS= "MASTER_UUID:2-7";
49 Warnings:
50 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
51 include/wait_for_slave_sql_to_stop.inc
52 include/assert.inc [Rows until 5 in t1 must be replicated now]
53 SQL thread must stop *after* INSERT 5
54 1-5 are already applied so it will stop immediately
55 START SLAVE SQL_THREAD, IO_THREAD UNTIL SQL_AFTER_GTIDS= "MASTER_UUID:1-5";
56 include/wait_for_slave_sql_to_stop.inc
57 include/assert.inc [Rows until 5 in t1 must be replicated now]
58 SQL thread must stop *before* INSERT 10
59 START SLAVE UNTIL SQL_BEFORE_GTIDS= "MASTER_UUID:10";
60 Warnings:
61 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
62 include/wait_for_slave_sql_to_stop.inc
63 include/assert.inc [Rows until 9 in t1 must be replicated now]
64 SQL thread must stop *before* INSERT 3-6
65 3-6 is already applied so it will stop immediately
66 START SLAVE UNTIL SQL_BEFORE_GTIDS= "MASTER_UUID:3-6";
67 Warnings:
68 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
69 include/wait_for_slave_sql_to_stop.inc
70 include/assert.inc [Rows until 9 in t1 must be replicated now]
71 SQL thread must stop *before* INSERT 9
72 9 is already applied so it will stop immediately
73 START SLAVE UNTIL SQL_BEFORE_GTIDS= "MASTER_UUID:9";
74 Warnings:
75 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
76 include/wait_for_slave_sql_to_stop.inc
77 include/assert.inc [Rows until 9 in t1 must be replicated now]
78 Sync slave with master
79 include/start_slave.inc
80 SELECT WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS('MASTER_UUID:10');
81 include/assert.inc [Rows until 10 in t1 must be replicated now]
82 Test WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS function with negative timeout
83 value. When SQL_MODE is strict, then it will throw
84 WRONG_ARGUMENTS error.
85 SET @save_sql_mode=@@SESSION.SQL_MODE;
86 SET @@SESSION.SQL_MODE="STRICT_ALL_TABLES";
87 Warnings:
88 Warning 3135 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
89 SELECT WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS('MASTER_UUID:100', -1);;
90 ERROR HY000: Incorrect arguments to WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS.
91 When SQL_MODE is non-strict mode the function executes
92 same as in strict SQL_MODE and generates WRONG_ARGUMENTS error.
93 SET @@SESSION.SQL_MODE="";
94 SELECT WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS('MASTER_UUID:100', -1);;
95 ERROR HY000: Incorrect arguments to WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS.
96 SET @@SESSION.SQL_MODE=@save_sql_mode;
97 Test WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS function with fractional timeout
98 value. Earlier(before fix), 0.4 is read as integer value '0' and
99 the function hanged forever (or till all the specified gtids are
100 executed). Now(after fix) 0.4 will be read as double 0.4 and will waitfor
101 atleast 0.4 seconds (or till all the specified gtids are executed).
102 Also check that function returns -1 if the timeout has been exceeded.
103 include/assert.inc [WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS returns -1 if the timeout has been exceeded.]
104 DROP TABLE t1;
105 include/rpl_end.inc