v.23.5Improvement

Added enable_the_endpoint_id_with_zookeeper_name_prefix setting to ReplicatedMergeTree to prevent Duplicate interserver IO endpoint errors

Added enable_the_endpoint_id_with_zookeeper_name_prefix setting for ReplicatedMergeTree (disabled by default). When enabled, it adds ZooKeeper cluster name to table's interserver communication endpoint. It avoids Duplicate interserver IO endpoint errors when having replicated tables with the same path, but different auxiliary ZooKeepers. #49780 (helifu).
Added enable_the_endpoint_id_with_zookeeper_name_prefix setting for ReplicatedMergeTree to include the ZooKeeper cluster name in the table's interserver communication endpoint.

Why it matters

This feature prevents Duplicate interserver IO endpoint errors by distinguishing replicated tables that have the same path but use different auxiliary ZooKeeper clusters.

How to use it

Enable the enable_the_endpoint_id_with_zookeeper_name_prefix setting (disabled by default) in the ReplicatedMergeTree table configuration to add the ZooKeeper cluster name prefix to the interserver communication endpoint.