Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.11, 11.4, 12.3
-
None
-
Unexpected results
Description
CHANGE MASTER string option values are stored null-terminated in memory and as plain-text lines on disk.
This means nulls (\0) and line-breaks (\n) break these formats respectively.
Since changing those formats is a major refactoring unsuitable for LTS versions, CHANGE MASTER will have to ban these troublemakers.
MTR Demo
|
.test |
--source include/not_embedded.inc # have_replication
|
|
|
CHANGE MASTER TO |
master_host="Don't test with this config, or reloading will error", |
master_ssl_crl='ssl/crl\nssl/crlpath\0garbage';
|
|
|
--let $status_items= Master_SSL_Crl, Master_SSL_Crlpath
|
--source include/show_slave_status.inc
|
|
|
--let $restart_parameters= --skip-slave-start
|
--source include/restart_mysqld.inc
|
|
|
--source include/show_slave_status.inc
|
|
|
RESET SLAVE ALL; # Cleanup |
|
actual.result |
CHANGE MASTER TO |
master_host="Don't test with this config, or reloading will error", |
master_ssl_crl='ssl/crl\nssl/crlpath\0garbage'; |
Master_SSL_Crl = 'ssl/crl |
ssl/crlpath' |
Master_SSL_Crlpath = '' |
# restart: --skip-slave-start
|
Master_SSL_Crl = 'ssl/crl' |
Master_SSL_Crlpath = 'ssl/crlpath' |
RESET SLAVE ALL; |
Attachments
Issue Links
- relates to
-
MDEV-21753 convert the upstream"s "*-info-repository=TABLE" tables into info files
-
- Stalled
-
-
MDEV-28667 Avoid clear text password in master.info
-
- Open
-
- split from
-
MDEV-40271 @@default_master_connection is corrupted if set to a string with null bytes
-
- In Review
-