Debian Codegraph @

mysql-test/suite/rpl/r/rpl_stm_max_relay_size.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 stop slave;
7 Warnings:
8 Warning 1287 'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead
9 #
10 # Generate a big enough master's binlog to cause relay log rotations
11 #
12 create table t1 (a int);
13 drop table t1;
14 reset slave;
15 Warnings:
16 Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead
17 #
18 # Test 1
19 #
20 set @my_max_binlog_size= @@global.max_binlog_size;
21 set global max_binlog_size=8192;
22 set global max_relay_log_size=8192-1;
23 Warnings:
24 Warning 1292 Truncated incorrect max_relay_log_size value: '8191'
25 select @@global.max_relay_log_size;
26 @@global.max_relay_log_size
27 4096
28 start slave;
29 Warnings:
30 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
31 include/check_slave_is_running.inc
32 #
33 # Test 2
34 #
35 stop slave;
36 Warnings:
37 Warning 1287 'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead
38 reset slave;
39 Warnings:
40 Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead
41 set global max_relay_log_size=(5*4096);
42 select @@global.max_relay_log_size;
43 @@global.max_relay_log_size 20480
44 start slave;
45 Warnings:
46 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
47 include/check_slave_is_running.inc
48 #
49 # Test 3: max_relay_log_size = 0
50 #
51 stop slave;
52 Warnings:
53 Warning 1287 'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead
54 reset slave;
55 Warnings:
56 Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead
57 set global max_relay_log_size=0;
58 select @@global.max_relay_log_size;
59 @@global.max_relay_log_size 0
60 start slave;
61 Warnings:
62 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
63 include/check_slave_is_running.inc
64 #
65 # Test 4: Tests below are mainly to ensure that we have not coded with wrong assumptions
66 #
67 stop slave;
68 Warnings:
69 Warning 1287 'STOP SLAVE' is deprecated and will be removed in a future release. Please use STOP REPLICA instead
70 reset slave;
71 Warnings:
72 Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead
73 flush logs;
74 #
75 # Test 5
76 #
77 reset slave;
78 Warnings:
79 Warning 1287 'RESET SLAVE' is deprecated and will be removed in a future release. Please use RESET REPLICA instead
80 start slave;
81 Warnings:
82 Warning 1287 'START SLAVE' is deprecated and will be removed in a future release. Please use START REPLICA instead
83 flush logs;
84 create table t1 (a int);
85 include/sync_slave_sql_with_master.inc
86 include/check_slave_is_running.inc
87 #
88 # Test 6: one more rotation, to be sure Relay_Log_Space is correctly updated
89 #
90 flush logs;
91 drop table t1;
92 include/sync_slave_sql_with_master.inc
93 include/check_slave_is_running.inc
94 flush logs;
95 show master status;
96 File Position Binlog_Do_DB Binlog_Ignore_DB Executed_Gtid_Set
97 master-bin.000002 # <Binlog_Do_DB> <Binlog_Ignore_DB> <Executed_Gtid_Set>
98 set global max_binlog_size= @my_max_binlog_size;
99 #
100 # End of 4.1 tests
101 #
102 include/rpl_end.inc