Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.3.34, 10.4.24, 10.5.15, 10.6.7, 10.7.3, 10.8.2
-
None
Description
When running SHOW SLAVE STATUS on a slave set up to use SSL/TLS encryption to fetch binlog events from the master the Master_SSL_Crl field in the status output wrongly shows the same value as Master_SSL_CA.
E.g. set up slave with:
CHANGE MASTER TO
|
MASTER_HOST='master',
|
MASTER_USER='repl',
|
MASTER_PASSWORD='...',
|
MASTER_USE_GTID=slave_pos,
|
MASTER_SSL=1,
|
MASTER_SSL_CERT = '/vagrant/files/x509/slave-cert.pem',
|
MASTER_SSL_KEY = '/vagrant/files/x509/slave-key.pem',
|
MASTER_SSL_CA = '/vagrant/files/x509/ca-cert.pem',
|
MASTER_SSL_CRL = '/vagrant/files/x509/crl.pem';
|
gives this on SHOW SLAVE STATUS:
MariaDB [(none)]> show slave status\G
|
*************************** 1. row ***************************
|
Slave_IO_State: Waiting for master to send event
|
Master_Host: master
|
Master_User: repl
|
...
|
Master_SSL_Allowed: Yes
|
Master_SSL_CA_File: /vagrant/files/x509/ca-cert.pem
|
Master_SSL_CA_Path:
|
Master_SSL_Cert: /vagrant/files/x509/slave-1-cert.pem
|
Master_SSL_Cipher:
|
Master_SSL_Key: /vagrant/files/x509/slave-1-key.pem
|
Seconds_Behind_Master: 0
|
Master_SSL_Verify_Server_Cert: No
|
...
|
Master_SSL_Crl: /vagrant/files/x509/ca-cert.pem
|
Master_SSL_Crlpath:
|
The master.info file correctly shows the file name given to Master_SSL_Crl in CHANGE MASTER TO though.
I tried to find in the code where this goes wrong, but all uses of the ssl_crl field in replication related code look correct to me ... :o
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Sergei Golubchik [ serg ] |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.6 [ 24028 ] | |
Fix Version/s | 10.7 [ 24805 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Stalled [ 10000 ] |
Status | Stalled [ 10000 ] | In Testing [ 10301 ] |
Component/s | Admin statements [ 11400 ] | |
Fix Version/s | 10.2.44 [ 27514 ] | |
Fix Version/s | 10.3.35 [ 27512 ] | |
Fix Version/s | 10.4.25 [ 27510 ] | |
Fix Version/s | 10.5.16 [ 27508 ] | |
Fix Version/s | 10.6.8 [ 27506 ] | |
Fix Version/s | 10.7.4 [ 27504 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.6 [ 24028 ] | |
Fix Version/s | 10.7 [ 24805 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Testing [ 10301 ] | Closed [ 6 ] |
Component/s | Replication [ 10100 ] |
May be related to https://bugs.mysql.com/bug.php?id=70866