~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/r/rpl_heartbeat.result

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
reset master;
 
2
set @@global.slave_net_timeout= 10;
 
3
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root';
 
4
show status like 'Slave_heartbeat_period';;
 
5
Variable_name   Slave_heartbeat_period
 
6
Value   5.000
 
7
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 4294968;
 
8
ERROR HY000: The requested value for the heartbeat period  is negative or exceeds the maximum  4294967 seconds
 
9
show status like 'Slave_heartbeat_period';;
 
10
Variable_name   Slave_heartbeat_period
 
11
Value   5.000
 
12
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 0.0009999;
 
13
Warnings:
 
14
Warning 1669    The requested value for the heartbeat period  is less than 1 msec.  The period is reset to zero which means no heartbeats will be sending
 
15
show status like 'Slave_heartbeat_period';;
 
16
Variable_name   Slave_heartbeat_period
 
17
Value   0.000
 
18
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 4294967;
 
19
Warnings:
 
20
Warning 1669    The requested value for the heartbeat period  exceeds the value of `slave_net_timeout' sec.  A sensible value for the period should be less than the timeout.
 
21
show status like 'Slave_heartbeat_period';;
 
22
Variable_name   Slave_heartbeat_period
 
23
Value   4294967.000
 
24
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 0.001;
 
25
show status like 'Slave_heartbeat_period';;
 
26
Variable_name   Slave_heartbeat_period
 
27
Value   0.001
 
28
reset slave;
 
29
set @@global.slave_net_timeout= 5;
 
30
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 5.001;
 
31
Warnings:
 
32
Warning 1669    The requested value for the heartbeat period  exceeds the value of `slave_net_timeout' sec.  A sensible value for the period should be less than the timeout.
 
33
show status like 'Slave_heartbeat_period';;
 
34
Variable_name   Slave_heartbeat_period
 
35
Value   5.001
 
36
reset slave;
 
37
set @@global.slave_net_timeout= 5;
 
38
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 4;
 
39
show status like 'Slave_heartbeat_period';;
 
40
Variable_name   Slave_heartbeat_period
 
41
Value   4.000
 
42
set @@global.slave_net_timeout= 3 /* must be a warning */;
 
43
Warnings:
 
44
Warning 1669    The currect value for master_heartbeat_period exceeds the new value of `slave_net_timeout' sec. A sensible value for the period should be less than the timeout.
 
45
reset slave;
 
46
drop table if exists t1;
 
47
set @@global.slave_net_timeout= 10;
 
48
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 0.5;
 
49
show status like 'Slave_heartbeat_period';;
 
50
Variable_name   Slave_heartbeat_period
 
51
Value   0.500
 
52
start slave;
 
53
create table t1 (f1 int);
 
54
SHOW SLAVE STATUS;
 
55
Slave_IO_State  #
 
56
Master_Host     127.0.0.1
 
57
Master_User     root
 
58
Master_Port     MASTER_PORT
 
59
Connect_Retry   60
 
60
Master_Log_File master-bin.000001
 
61
Read_Master_Log_Pos     280
 
62
Relay_Log_File  #
 
63
Relay_Log_Pos   #
 
64
Relay_Master_Log_File   master-bin.000001
 
65
Slave_IO_Running        Yes
 
66
Slave_SQL_Running       Yes
 
67
Replicate_Do_DB 
 
68
Replicate_Ignore_DB     
 
69
Replicate_Do_Table      
 
70
Replicate_Ignore_Table  #
 
71
Replicate_Wild_Do_Table 
 
72
Replicate_Wild_Ignore_Table     
 
73
Last_Errno      0
 
74
Last_Error      
 
75
Skip_Counter    0
 
76
Exec_Master_Log_Pos     280
 
77
Relay_Log_Space #
 
78
Until_Condition None
 
79
Until_Log_File  
 
80
Until_Log_Pos   0
 
81
Master_SSL_Allowed      No
 
82
Master_SSL_CA_File      
 
83
Master_SSL_CA_Path      
 
84
Master_SSL_Cert 
 
85
Master_SSL_Cipher       
 
86
Master_SSL_Key  
 
87
Seconds_Behind_Master   #
 
88
Master_SSL_Verify_Server_Cert   No
 
89
Last_IO_Errno   #
 
90
Last_IO_Error   #
 
91
Last_SQL_Errno  0
 
92
Last_SQL_Error  
 
93
SHOW SLAVE STATUS;
 
94
Slave_IO_State  #
 
95
Master_Host     127.0.0.1
 
96
Master_User     root
 
97
Master_Port     MASTER_PORT
 
98
Connect_Retry   60
 
99
Master_Log_File master-bin.000001
 
100
Read_Master_Log_Pos     280
 
101
Relay_Log_File  #
 
102
Relay_Log_Pos   #
 
103
Relay_Master_Log_File   master-bin.000001
 
104
Slave_IO_Running        Yes
 
105
Slave_SQL_Running       Yes
 
106
Replicate_Do_DB 
 
107
Replicate_Ignore_DB     
 
108
Replicate_Do_Table      
 
109
Replicate_Ignore_Table  #
 
110
Replicate_Wild_Do_Table 
 
111
Replicate_Wild_Ignore_Table     
 
112
Last_Errno      0
 
113
Last_Error      
 
114
Skip_Counter    0
 
115
Exec_Master_Log_Pos     280
 
116
Relay_Log_Space #
 
117
Until_Condition None
 
118
Until_Log_File  
 
119
Until_Log_Pos   0
 
120
Master_SSL_Allowed      No
 
121
Master_SSL_CA_File      
 
122
Master_SSL_CA_Path      
 
123
Master_SSL_Cert 
 
124
Master_SSL_Cipher       
 
125
Master_SSL_Key  
 
126
Seconds_Behind_Master   #
 
127
Master_SSL_Verify_Server_Cert   No
 
128
Last_IO_Errno   #
 
129
Last_IO_Error   #
 
130
Last_SQL_Errno  0
 
131
Last_SQL_Error  
 
132
show status like 'Slave_heartbeat_period';;
 
133
Variable_name   Slave_heartbeat_period
 
134
Value   0.500
 
135
A heartbeat has been received by the slave
 
136
drop table t1;
 
137
End of tests