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
BUG#33213841: MySQL crashes while executing RESET REPLICA ALL
When the replica SQL mode includes the mode 'PAD_CHAR_TO_FULL_LENGTH',
the channel name can be read from the repository with trailing spaces
what can lead to errors in operations that use that name to identify
the channel.
To solve this issue all CHAR columns in replication repository tables
will be converted to VARCHAR making the table behavior always the same
despite what the server SQL mode is.
Merge branch 'mysql-5.7' into mysql-8.0 with a different patch
ReviewBoard: 27008
ReviewBoard: 27047
Copy file name to clipboardExpand all lines: mysql-test/r/mysqldump.result
+6-6
Original file line number
Diff line number
Diff line change
@@ -5299,7 +5299,7 @@ CREATE TABLE IF NOT EXISTS `slave_master_info` (
5299
5299
`Number_of_lines` int unsigned NOT NULL COMMENT 'Number of lines in the file.',
5300
5300
`Master_log_name` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'The name of the master binary log currently being read from the master.',
5301
5301
`Master_log_pos` bigint unsigned NOT NULL COMMENT 'The master log position of the last read event.',
5302
-
`Host` char(255) CHARACTER SET ascii COLLATE ascii_general_ci DEFAULT NULL COMMENT 'The host name of the master.',
5302
+
`Host` varchar(255) CHARACTER SET ascii COLLATE ascii_general_ci DEFAULT NULL COMMENT 'The host name of the source.',
5303
5303
`User_name` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The user name used to connect to the master.',
5304
5304
`User_password` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The password used to connect to the master.',
5305
5305
`Port` int unsigned NOT NULL COMMENT 'The network port used to connect to the master.',
@@ -5319,12 +5319,12 @@ CREATE TABLE IF NOT EXISTS `slave_master_info` (
5319
5319
`Ssl_crl` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The file used for the Certificate Revocation List (CRL)',
5320
5320
`Ssl_crlpath` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The path used for Certificate Revocation List (CRL) files',
5321
5321
`Enabled_auto_position` tinyint(1) NOT NULL COMMENT 'Indicates whether GTIDs will be used to retrieve events from the master.',
5322
-
`Channel_name` char(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'The channel on which the slave is connected to a source. Used in Multisource Replication',
5322
+
`Channel_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'The channel on which the replica is connected to a source. Used in Multisource Replication',
5323
5323
`Tls_version` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'Tls version',
5324
5324
`Public_key_path` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'The file containing public key of master server.',
5325
5325
`Get_public_key` tinyint(1) NOT NULL COMMENT 'Preference to get public key from master.',
5326
5326
`Network_namespace` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'Network namespace used for communication with the master server.',
5327
-
`Master_compression_algorithm` char(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'Compression algorithm supported for data transfer between master and slave.',
5327
+
`Master_compression_algorithm` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT 'Compression algorithm supported for data transfer between source and replica.',
5328
5328
`Master_zstd_compression_level` int unsigned NOT NULL COMMENT 'Compression level associated with zstd compression algorithm.',
5329
5329
`Tls_ciphersuites` text CHARACTER SET utf8 COLLATE utf8_bin COMMENT 'Ciphersuites used for TLS 1.3 communication with the master server.',
5330
5330
`Source_connection_auto_failover` tinyint(1) NOT NULL DEFAULT '0' COMMENT 'Indicates whether the channel connection failover is enabled.',
@@ -5343,9 +5343,9 @@ CREATE TABLE IF NOT EXISTS `slave_relay_log_info` (
5343
5343
`Sql_delay` int DEFAULT NULL COMMENT 'The number of seconds that the slave must lag behind the master.',
5344
5344
`Number_of_workers` int unsigned DEFAULT NULL,
5345
5345
`Id` int unsigned DEFAULT NULL COMMENT 'Internal Id that uniquely identifies this record.',
5346
-
`Channel_name` char(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'The channel on which the slave is connected to a source. Used in Multisource Replication',
5347
-
`Privilege_checks_username` char(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT 'Username part of PRIVILEGE_CHECKS_USER.',
5348
-
`Privilege_checks_hostname` char(255) CHARACTER SET ascii COLLATE ascii_general_ci DEFAULT NULL COMMENT 'Hostname part of PRIVILEGE_CHECKS_USER.',
5346
+
`Channel_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'The channel on which the replica is connected to a source. Used in Multisource Replication',
5347
+
`Privilege_checks_username` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT 'Username part of PRIVILEGE_CHECKS_USER.',
5348
+
`Privilege_checks_hostname` varchar(255) CHARACTER SET ascii COLLATE ascii_general_ci DEFAULT NULL COMMENT 'Hostname part of PRIVILEGE_CHECKS_USER.',
5349
5349
`Require_row_format` tinyint(1) NOT NULL COMMENT 'Indicates whether the channel shall only accept row based events.',
5350
5350
`Require_table_primary_key_check` enum('STREAM','ON','OFF') NOT NULL DEFAULT 'STREAM' COMMENT 'Indicates what is the channel policy regarding tables having primary keys on create and alter table queries',
5351
5351
`Assign_gtids_to_anonymous_transactions_type` enum('OFF','LOCAL','UUID') NOT NULL DEFAULT 'OFF' COMMENT 'Indicates whether the channel will generate a new GTID for anonymous transactions. OFF means that anonymous transactions will remain anonymous. LOCAL means that anonymous transactions will be assigned a newly generated GTID based on server_uuid. UUID indicates that anonymous transactions will be assigned a newly generated GTID based on Assign_gtids_to_anonymous_transactions_value',
0 commit comments