Skip to content

FIX: Set node address to the actual host and port of the node advertised by the cluster#255

Merged
ArgusLi merged 1 commit intomainfrom
fix/localhost-cluster-connection-not-found-for-route
Mar 27, 2026
Merged

FIX: Set node address to the actual host and port of the node advertised by the cluster#255
ArgusLi merged 1 commit intomainfrom
fix/localhost-cluster-connection-not-found-for-route

Conversation

@ArgusLi
Copy link
Copy Markdown
Contributor

@ArgusLi ArgusLi commented Mar 27, 2026

Description

The cluster nodes advertise their internal IPs (192.168.12.x:700x), but the user connects via localhost:7001. After the GlideClusterClient performs its initial topology refresh, it replaces the seed address with the cluster-advertised addresses. This routes INFO to localhost:7001, but the GlideClusterClient no longer has that address in its topology — it only knows 192.168.12.43:7001. So it throws ConnectionNotFoundForRoute.

This change uses the actual address advertised by the cluster for the node.

…d by the cluster.

Previously it was set to what the user inputted, which led to errors with localhost not being redirected.

Signed-off-by: Argus Li <[email protected]>
@ArgusLi ArgusLi requested a review from ravjotbrar March 27, 2026 19:23
@ArgusLi ArgusLi merged commit 2317a02 into main Mar 27, 2026
7 checks passed
@ArgusLi ArgusLi deleted the fix/localhost-cluster-connection-not-found-for-route branch March 27, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants