Skip to content

internal/rest/resources/control: retry remaining join addresses on client connect err#762

Draft
claudiubelu wants to merge 1 commit into
canonical:v2from
claudiubelu:v2-join-with-token-err
Draft

internal/rest/resources/control: retry remaining join addresses on client connect err#762
claudiubelu wants to merge 1 commit into
canonical:v2from
claudiubelu:v2-join-with-token-err

Conversation

@claudiubelu

Copy link
Copy Markdown
Contributor

When joining a cluster, joinWithToken iterates over all addresses in the token to find a reachable cluster member.

However, if state.Connect().Member fails for an address, the function returns immediately instead of trying the next address. This is inconsistent with how other failures in the same loop are handled (GetRemoteCertificate and AddClusterMember both continue to the next address on error).

The function now iterates over all the join addresses in this scenario.

(cherry picked from commit 39f47c0)

…ient connect err

When joining a cluster, joinWithToken iterates over all addresses in the
token to find a reachable cluster member.

However, if internalClient.New fails for an address, the function returns
immediately instead of trying the next address. This is inconsistent with
how other failures in the same loop are handled (GetRemoteCertificate and
AddClusterMember both continue to the next address on error).

The function now iterates over all the join addresses in this scenario.

(cherry picked from commit 39f47c0)
Signed-off-by: Claudiu Belu <cbelu@cloudbasesolutions.com>
@claudiubelu claudiubelu force-pushed the v2-join-with-token-err branch from fddf0f3 to 5c777d5 Compare June 17, 2026 10:22
@roosterfish

Copy link
Copy Markdown
Contributor

Marked as draft until #760 (comment) gets merged.

@roosterfish roosterfish marked this pull request as draft June 23, 2026 12:00
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