Skip to content

"long" cluster name breaks replication #113

@Dlahacz

Description

@Dlahacz

Hi,
We have discovered that after converting from IP to hostname and using the new replication service, it is very easy to break replication by using a "long" cluster name. It appears that the cluster_*_cluster_incoming_addresses field is limited to 255 characters. If I calculated it correctly, the actual limit for the cluster name is currently 11 characters (assuming there are no more than 10 workers).

6.2.122

| cluster_manticorecustomer62122_cluster_incoming_addresses         | 10.0.128.44:9312,10.0.128.44:9315:replication

6.3.8

| cluster_manticorecustomer6381_cluster_incoming_addresses         | manticorecustomer6381-manticoresearch-worker-0.manticorecustomer6381-manticoresearch-worker-replication-svc.manticorecustomer6381.svc.cluster.local:9312,manticorecustomer6381-manticoresearch-worker-0.manticorecustomer6381-manticoresearch-worker-replicatio |

The ALTER CLUSTER ADD command freezes because it is unable to resolve the truncated hostname (without producing an error, as far as we know).

Metadata

Metadata

Assignees

Labels

waitingWaiting for the original poster (in most cases) or something else

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions