You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MDEV-35879 Slave_heartbeat_period is imprecise
* Increase maximum to `std::numeric_limits<uint32_t>::max() ÷ 1000`,
i.e., `4294967.295` *exactly*
* Excludes its additional tests as they are exclusive to that issue fix.
* But not the `0.00049` case, which was *changed*, not *added*.
* Some changes are refactors and so are exclusive to the `main` branch.
* Delete tests in `rpl.rpl_heartbeat`
that duplicates `rpl.rpl_heartbeat_basic`
Copy file name to clipboardExpand all lines: mysql-test/suite/rpl/r/rpl_heartbeat.result
-35Lines changed: 0 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -6,41 +6,6 @@ connection slave;
6
6
include/stop_slave.inc
7
7
set @restore_slave_net_timeout= @@global.slave_net_timeout;
8
8
set @@global.slave_net_timeout= 10;
9
-
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root';
10
-
show status like 'Slave_heartbeat_period';;
11
-
Variable_name Slave_heartbeat_period
12
-
Value 5.000
13
-
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 4294968;
14
-
ERROR HY000: The requested value for the heartbeat period is either negative or exceeds the maximum allowed (4294967 seconds)
15
-
show status like 'Slave_heartbeat_period';;
16
-
Variable_name Slave_heartbeat_period
17
-
Value 5.000
18
-
connection slave;
19
-
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 0.0009999;
20
-
Warnings:
21
-
Warning 1703 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
22
-
show status like 'Slave_heartbeat_period';;
23
-
Variable_name Slave_heartbeat_period
24
-
Value 0.000
25
-
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 4294967;
26
-
Warnings:
27
-
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
28
-
show status like 'Slave_heartbeat_period';;
29
-
Variable_name Slave_heartbeat_period
30
-
Value 4294967.000
31
-
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 0.001;
32
-
show status like 'Slave_heartbeat_period';;
33
-
Variable_name Slave_heartbeat_period
34
-
Value 0.001
35
-
reset slave;
36
-
set @@global.slave_net_timeout= 5;
37
-
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 5.001;
38
-
Warnings:
39
-
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
40
-
show status like 'Slave_heartbeat_period';;
41
-
Variable_name Slave_heartbeat_period
42
-
Value 5.001
43
-
reset slave;
44
9
set @@global.slave_net_timeout= 5;
45
10
change master to master_host='127.0.0.1',master_port=MASTER_PORT, master_user='root', master_heartbeat_period= 4;
Copy file name to clipboardExpand all lines: mysql-test/suite/rpl/r/rpl_heartbeat_basic.result
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -145,7 +145,7 @@ SHOW GLOBAL STATUS LIKE 'slave_heartbeat_period';
145
145
Variable_name Value
146
146
Slave_heartbeat_period 0.001
147
147
RESET SLAVE;
148
-
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_CONNECT_RETRY=20, MASTER_HEARTBEAT_PERIOD=0.0009;
148
+
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_CONNECT_RETRY=20, MASTER_HEARTBEAT_PERIOD=0.00049;
149
149
Warnings:
150
150
Warning 1703 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
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_CONNECT_RETRY=20, MASTER_HEARTBEAT_PERIOD=4294967;
157
+
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_CONNECT_RETRY=20, MASTER_HEARTBEAT_PERIOD=4294967.295;
158
158
Warnings:
159
159
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
160
160
SHOW GLOBAL STATUS LIKE 'slave_heartbeat_period';
161
161
Variable_name Value
162
-
Slave_heartbeat_period 4294967.000
162
+
Slave_heartbeat_period 4294967.295
163
163
RESET SLAVE;
164
164
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_CONNECT_RETRY=20, MASTER_HEARTBEAT_PERIOD=4294968;
165
-
ERROR HY000: The requested value for the heartbeat period is either negative or exceeds the maximum allowed (4294967 seconds)
165
+
ERROR HY000: The requested value for the heartbeat period is either negative or exceeds the maximum allowed (4294967.295 seconds)
166
166
RESET SLAVE;
167
167
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_CONNECT_RETRY=20, MASTER_HEARTBEAT_PERIOD=8589935;
168
-
ERROR HY000: The requested value for the heartbeat period is either negative or exceeds the maximum allowed (4294967 seconds)
168
+
ERROR HY000: The requested value for the heartbeat period is either negative or exceeds the maximum allowed (4294967.295 seconds)
169
169
RESET SLAVE;
170
170
CHANGE MASTER TO MASTER_HOST='127.0.0.1', MASTER_PORT=MASTER_PORT, MASTER_USER='root', MASTER_CONNECT_RETRY=20, MASTER_HEARTBEAT_PERIOD=4294967296;
171
-
ERROR HY000: The requested value for the heartbeat period is either negative or exceeds the maximum allowed (4294967 seconds)
171
+
ERROR HY000: The requested value for the heartbeat period is either negative or exceeds the maximum allowed (4294967.295 seconds)
0 commit comments