~ubuntu-branches/ubuntu/trusty/mysql-5.6/trusty

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-12 11:54:27 UTC
  • Revision ID: package-import@ubuntu.com-20140212115427-oq6tfsqxl1wuwehi
Tags: upstream-5.6.15
ImportĀ upstreamĀ versionĀ 5.6.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include/master-slave.inc
 
2
[connection master]
 
3
set @restore_slave_net_timeout= @@global.slave_net_timeout;
 
4
set @@global.slave_net_timeout= 10;
 
5
SHOW STATUS LIKE "Slave_last_heartbeat";
 
6
Variable_name   Slave_last_heartbeat
 
7
Value   
 
8
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root';
 
9
Warnings:
 
10
Note    ####    Sending passwords in plain text without SSL/TLS is extremely insecure.
 
11
Note    ####    Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
 
12
show status like 'Slave_heartbeat_period';;
 
13
Variable_name   Slave_heartbeat_period
 
14
Value   5.000
 
15
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 4294968;
 
16
ERROR HY000: The requested value for the heartbeat period is either negative or exceeds the maximum allowed (4294967 seconds).
 
17
show status like 'Slave_heartbeat_period';;
 
18
Variable_name   Slave_heartbeat_period
 
19
Value   5.000
 
20
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 0.0009999;
 
21
Warnings:
 
22
Warning ####    The requested value for the heartbeat period is less than 1 millisecond. The value is reset to 0, meaning that heartbeating will effectively be disabled.
 
23
Note    ####    Sending passwords in plain text without SSL/TLS is extremely insecure.
 
24
Note    ####    Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
 
25
show status like 'Slave_heartbeat_period';;
 
26
Variable_name   Slave_heartbeat_period
 
27
Value   0.000
 
28
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 4294967;
 
29
Warnings:
 
30
Warning ####    The requested value for the heartbeat period exceeds the value of `slave_net_timeout' seconds. A sensible value for the period should be less than the timeout.
 
31
Note    ####    Sending passwords in plain text without SSL/TLS is extremely insecure.
 
32
Note    ####    Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
 
33
show status like 'Slave_heartbeat_period';;
 
34
Variable_name   Slave_heartbeat_period
 
35
Value   4294967.000
 
36
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 0.001;
 
37
Warnings:
 
38
Note    ####    Sending passwords in plain text without SSL/TLS is extremely insecure.
 
39
Note    ####    Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
 
40
show status like 'Slave_heartbeat_period';;
 
41
Variable_name   Slave_heartbeat_period
 
42
Value   0.001
 
43
reset slave;
 
44
set @@global.slave_net_timeout= 5;
 
45
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 5.001;
 
46
Warnings:
 
47
Warning ####    The requested value for the heartbeat period exceeds the value of `slave_net_timeout' seconds. A sensible value for the period should be less than the timeout.
 
48
Note    ####    Sending passwords in plain text without SSL/TLS is extremely insecure.
 
49
Note    ####    Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
 
50
show status like 'Slave_heartbeat_period';;
 
51
Variable_name   Slave_heartbeat_period
 
52
Value   5.001
 
53
reset slave;
 
54
set @@global.slave_net_timeout= 5;
 
55
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 4;
 
56
Warnings:
 
57
Note    ####    Sending passwords in plain text without SSL/TLS is extremely insecure.
 
58
Note    ####    Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
 
59
show status like 'Slave_heartbeat_period';;
 
60
Variable_name   Slave_heartbeat_period
 
61
Value   4.000
 
62
set @@global.slave_net_timeout= 3 /* must be a warning */;
 
63
Warnings:
 
64
Warning 1704    The requested value for the heartbeat period exceeds the value of `slave_net_timeout' seconds. A sensible value for the period should be less than the timeout.
 
65
reset slave;
 
66
drop table if exists t1;
 
67
set @@global.slave_net_timeout= 10;
 
68
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 0.5;
 
69
Warnings:
 
70
Note    ####    Sending passwords in plain text without SSL/TLS is extremely insecure.
 
71
Note    ####    Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
 
72
show status like 'Slave_heartbeat_period';;
 
73
Variable_name   Slave_heartbeat_period
 
74
Value   0.500
 
75
start slave;
 
76
create table t1 (f1 int);
 
77
include/check_slave_param.inc [Relay_Log_File]
 
78
show status like 'Slave_heartbeat_period';;
 
79
Variable_name   Slave_heartbeat_period
 
80
Value   0.500
 
81
A heartbeat has been received by the slave
 
82
include/assert.inc [Slave_last_heartbeat should not be empty]
 
83
drop table t1;
 
84
set @@global.slave_net_timeout= @restore_slave_net_timeout;
 
85
include/rpl_end.inc