~ubuntu-branches/ubuntu/trusty/mariadb-5.5/trusty-proposed

« back to all changes in this revision

Viewing changes to mysql-test/suite/engines/funcs/r/rpl_stm_max_relay_size.result

  • Committer: Package Import Robot
  • Author(s): Otto Kekäläinen
  • Date: 2013-12-22 10:27:05 UTC
  • Revision ID: package-import@ubuntu.com-20131222102705-mndw7s12mz0szrcn
Tags: upstream-5.5.32
Import upstream version 5.5.32

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
stop slave;
 
2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
3
reset master;
 
4
reset slave;
 
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
6
start slave;
 
7
stop slave;
 
8
#
 
9
# Generate a big enough master's binlog to cause relay log rotations
 
10
#
 
11
create table t1 (a int);
 
12
drop table t1;
 
13
reset slave;
 
14
#
 
15
# Test 1
 
16
#
 
17
set @my_max_binlog_size= @@global.max_binlog_size;
 
18
set global max_binlog_size=8192;
 
19
set global max_relay_log_size=8192-1;
 
20
Warnings:
 
21
Warning 1292    Truncated incorrect max_relay_log_size value: '8191'
 
22
select @@global.max_relay_log_size;
 
23
@@global.max_relay_log_size
 
24
4096
 
25
start slave;
 
26
Checking that both slave threads are running.
 
27
#
 
28
# Test 2
 
29
#
 
30
stop slave;
 
31
reset slave;
 
32
set global max_relay_log_size=(5*4096);
 
33
select @@global.max_relay_log_size;
 
34
@@global.max_relay_log_size     20480
 
35
start slave;
 
36
Checking that both slave threads are running.
 
37
#
 
38
# Test 3: max_relay_log_size = 0
 
39
#
 
40
stop slave;
 
41
reset slave;
 
42
set global max_relay_log_size=0;
 
43
select @@global.max_relay_log_size;
 
44
@@global.max_relay_log_size     0
 
45
start slave;
 
46
Checking that both slave threads are running.
 
47
#
 
48
# Test 4: Tests below are mainly to ensure that we have not coded with wrong assumptions
 
49
#
 
50
stop slave;
 
51
reset slave;
 
52
flush logs;
 
53
#
 
54
# Test 5
 
55
#
 
56
reset slave;
 
57
start slave;
 
58
flush logs;
 
59
create table t1 (a int);
 
60
Checking that both slave threads are running.
 
61
#
 
62
# Test 6: one more rotation, to be sure Relay_Log_Space is correctly updated
 
63
#
 
64
flush logs;
 
65
drop table t1;
 
66
Checking that both slave threads are running.
 
67
flush logs;
 
68
show master status;
 
69
File    Position        Binlog_Do_DB    Binlog_Ignore_DB
 
70
master-bin.000002       #       <Binlog_Do_DB>  <Binlog_Ignore_DB>
 
71
set global max_binlog_size= @my_max_binlog_size;
 
72
#
 
73
# End of 4.1 tests
 
74