radondb-mysql-kubernetes
radondb-mysql-kubernetes copied to clipboard
[bug] Create a cluster on the qckp interface. The cluster name is 32 characters long. The slave node cannot be connected to the master node
Describe the problem
Create a cluster on the qckp interface. The cluster name is 32 characters long. The slave node cannot be connected to the master node
2022-06-23T09:52:26.006978+08:00 6 [ERROR] Slave I/O for channel '': error connecting to master 'radondb_repl@radondb-sm9al1-12345678998766666-mysql-0.radondb-sm9al1-1234:3306' - retry-time: 60 retries: 1053, Error_code: 2005
To Reproduce
1.Enter the qkcp application store and deploy the MySQL Cluster 2.Enter the cluster name, 32 characters long, and click the Create button
Expected behavior
create success
Environment:
- RadonDB MySQL version:v2.2.0-beta.2
https://dev.mysql.com/worklog/task/?id=12571
It is MySQL 5.7 's bug, host name just no more 60
So the cluster name never over clustername+9+clustername + 6 + 1 + namespace <= 60
so the clustername
length is less then (44-namesapce)/2