Skip to content

fix(conn): JoinCluster loop should use latest conn (#7950)#7952

Merged
danielmai merged 1 commit intorelease/v21.03from
danielmai/v21.03-raft-join-cluster
Jul 16, 2021
Merged

fix(conn): JoinCluster loop should use latest conn (#7950)#7952
danielmai merged 1 commit intorelease/v21.03from
danielmai/v21.03-raft-join-cluster

Conversation

@danielmai
Copy link
Copy Markdown
Contributor

@danielmai danielmai commented Jul 16, 2021

JoinCluster loop was getting the connection from pool upfront, and then looping over it. This opened up a bug because in #7918 , we close the connection in case it becomes unhealthy.

This PR gets the latest connection available in the loop. This was the only place in the codebase where I found this issue.

(cherry picked from commit 7531e95)


This change is Reviewable

JoinCluster loop was getting the connection from pool upfront, and then looping over it. This opened up a bug because in #7918 , we close the connection in case it becomes unhealthy.

This PR gets the latest connection available in the loop. This was the only place in the codebase where I found this issue.

(cherry picked from commit 7531e95)
@danielmai danielmai requested a review from manishrjain as a code owner July 16, 2021 20:17
@danielmai danielmai merged commit 7f51327 into release/v21.03 Jul 16, 2021
@danielmai danielmai deleted the danielmai/v21.03-raft-join-cluster branch July 16, 2021 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants