Debian Codegraph @

mysql-test/suite/rpl/r/rpl_stm_until.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 call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
7 [on slave]
8 include/sync_slave_sql_with_master.inc
9 include/stop_slave.inc
10 ==== Create some events on master ====
11 [on master]
12 create table t1(n int not null auto_increment primary key);
13 insert into t1 values (1),(2),(3),(4);
14 drop table t1;
15 create table t2(n int not null auto_increment primary key);
16 insert into t2 values (1),(2);
17 insert into t2 values (3),(4);
18 drop table t2;
19 ==== Replicate one event at a time on slave ====
20 [on slave]
21 start slave until SOURCE_LOG_FILE='MASTER_LOG_FILE', SOURCE_LOG_POS=MASTER_LOG_POS;
22 Warnings:
23 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
24 include/wait_for_slave_io_to_start.inc
25 include/wait_for_slave_sql_to_stop.inc
26 select * from t1;
27 n
28 1
29 2
30 3
31 4
32 include/check_slave_param.inc [Exec_Master_Log_Pos]
33 start slave until SOURCE_LOG_FILE='master-no-such-bin.000001', SOURCE_LOG_POS=MASTER_LOG_POS;
34 Warnings:
35 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
36 include/wait_for_slave_io_to_start.inc
37 include/wait_for_slave_sql_to_stop.inc
38 select * from t1;
39 n
40 1
41 2
42 3
43 4
44 include/check_slave_param.inc [Exec_Master_Log_Pos]
45 start slave until relay_log_file='slave-relay-bin.000003', relay_log_pos=RELAY_LOG_POS;
46 Warnings:
47 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
48 include/wait_for_slave_io_to_start.inc
49 include/wait_for_slave_sql_to_stop.inc
50 select * from t2;
51 n
52 1
53 2
54 include/check_slave_param.inc [Exec_Master_Log_Pos]
55 start slave;
56 Warnings:
57 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
58 [on master]
59 [on slave]
60 include/sync_slave_sql_with_master.inc
61 include/stop_slave.inc
62 start slave until SOURCE_LOG_FILE='MASTER_LOG_FILE', SOURCE_LOG_POS=MASTER_LOG_POS;
63 Warnings:
64 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
65 include/wait_for_slave_io_to_start.inc
66 include/wait_for_slave_sql_to_stop.inc
67 include/check_slave_param.inc [Exec_Master_Log_Pos]
68 ==== Test various error conditions ====
69 start slave until SOURCE_LOG_FILE='master-bin', SOURCE_LOG_POS=MASTER_LOG_POS;
70 ERROR HY000: Incorrect parameter or combination of parameters for START REPLICA UNTIL
71 start slave until SOURCE_LOG_FILE='master-bin.000001', SOURCE_LOG_POS=MASTER_LOG_POS, relay_log_pos=RELAY_LOG_POS;
72 ERROR HY000: Incorrect parameter or combination of parameters for START REPLICA UNTIL
73 start slave until SOURCE_LOG_FILE='master-bin.000001';
74 ERROR HY000: Incorrect parameter or combination of parameters for START REPLICA UNTIL
75 start slave until relay_log_file='slave-relay-bin.000002';
76 ERROR HY000: Incorrect parameter or combination of parameters for START REPLICA UNTIL
77 start slave until relay_log_file='slave-relay-bin.000002', SOURCE_LOG_POS=MASTER_LOG_POS;
78 ERROR HY000: Incorrect parameter or combination of parameters for START REPLICA UNTIL
79 start slave sql_thread;
80 Warnings:
81 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
82 start slave until SOURCE_LOG_FILE='master-bin.000001', SOURCE_LOG_POS=MASTER_LOG_POS;
83 Warnings:
84 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
85 Note 3083 Replication thread(s) for channel '' are already runnning.
86 include/stop_slave.inc
87 drop table if exists t1;
88 reset slave;
89 Warnings:
90 Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead
91 RESET MASTER;
92 CHANGE REPLICATION SOURCE to SOURCE_HOST='127.0.0.1',SOURCE_PORT=MASTER_PORT, SOURCE_USER='root';
93 Warnings:
94 Note 1759 Sending passwords in plain text without SSL/TLS is extremely insecure.
95 Note 1760 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.
96 drop table if exists t1;
97 reset master;
98 create table t1 (a int primary key auto_increment);
99 start slave;
100 Warnings:
101 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
102 include/stop_slave.inc
103 master and slave are in sync now
104 select 0 as zero;
105 zero
106 0
107 insert into t1 set a=null;
108 insert into t1 set a=null;
109 select count(*) as two from t1;
110 two
111 2
112 start slave until SOURCE_LOG_FILE='MASTER_LOG_FILE', SOURCE_LOG_POS= UNTIL_POS;;
113 Warnings:
114 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
115 include/wait_for_slave_sql_to_stop.inc
116 slave stopped at the prescribed position
117 select 0 as zero;
118 zero
119 0
120 select count(*) as one from t1;
121 one
122 1
123 drop table t1;
124 start slave;
125 Warnings:
126 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
127 [connection master]
128 # Make sure the master will put the new events in a new binlog file
129 FLUSH LOGS;
130 # Testing the execution until the last transaction of the master binlog
131 include/sync_slave_sql_with_master.inc
132 include/stop_slave_sql.inc
133 [connection master]
134 CREATE TABLE t1 (a INT) ENGINE=InnoDB;
135 include/sync_slave_io_with_master.inc
136 # Start SQL thread until it executed the CREATE TABLE
137 START SLAVE SQL_THREAD UNTIL SOURCE_LOG_FILE = "MASTER_FILE", SOURCE_LOG_POS = MASTER_POS;
138 Warnings:
139 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
140 # Wait until SQL thread reaches last master binlog file
141 include/wait_for_slave_param.inc [Relay_Master_Log_File]
142 # Wait until SQL thread reaches desired master binlog position
143 include/wait_for_slave_param.inc [Exec_Master_Log_Pos]
144 # If the desired position was reached, SQL thread should stop.
145 include/wait_for_slave_sql_to_stop.inc
146 include/assert.inc [t1 should be replicated]
147 # Testing the execution until the last transaction of the slave relaylog
148 [connection master]
149 CREATE TABLE t2 (a INT) ENGINE=InnoDB;
150 include/sync_slave_io_with_master.inc
151 # Start SQL thread until it executed the CREATE TABLE
152 START SLAVE SQL_THREAD UNTIL RELAY_LOG_FILE = "SLAVE_FILE", RELAY_LOG_POS = SLAVE_POS;
153 Warnings:
154 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
155 # Wait until SQL thread reaches last slave relaylog file
156 include/wait_for_slave_param.inc [Relay_Log_File]
157 # Wait until SQL thread reaches desired slave relaylog position
158 include/wait_for_slave_param.inc [Relay_Log_Pos]
159 # If the desired position was reached, SQL thread should stop.
160 include/wait_for_slave_sql_to_stop.inc
161 include/assert.inc [t2 should be replicated]
162 include/start_slave_sql.inc
163 [connection master]
164 DROP TABLE t1, t2;
165 include/rpl_end.inc