Bug #121932 SOURCE_CONNECT_RETRY rejects unsigned values above INT_MAX
Description:
The mysql.slave_master_info metadata definition declares Connect_retry as INTEGER UNSIGNED NOT NULL.
The MySQL 26.10 Reference Manual, “CHANGE REPLICATION SOURCE TO Statement,” says:
“These values are recorded in the source metadata repository and shown in the replication_connection_configuration Performance Schema table.”
SOURCE_CONNECT_RETRY=2147483647 is accepted and appears unchanged in performance_schema.replication_connection_configuration. However, the next valid INTEGER UNSIGNED value, 2147483648, is rejected during metadata persistence:
ERROR 1742 (HY000): Data for column 'Connect_retry' too long
The server log also reports:
[ERROR] [MY-010728] [Repl] Error writing source configuration.
Because 2147483648 is within the declared unsigned range, it should persist without this error.
How to repeat:
Run as root:
CHANGE REPLICATION SOURCE TO
SOURCE_HOST='127.0.0.1', SOURCE_CONNECT_RETRY=2147483647
FOR CHANNEL 'channel1';
SELECT CONNECTION_RETRY_INTERVAL
FROM performance_schema.replication_connection_configuration
WHERE CHANNEL_NAME='channel1';
-- returns 2147483647
CHANGE REPLICATION SOURCE TO SOURCE_CONNECT_RETRY=2147483648
FOR CHANNEL 'channel1';
-- ERROR 1742 (HY000): Data for column 'Connect_retry' too long
The second statement should succeed and CONNECTION_RETRY_INTERVAL should remain exactly 2147483648.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.047 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.