Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Jul 16, 2021

Conversation

manishrjain
Copy link
Contributor

@manishrjain manishrjain 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.


This change is Reviewable

@manishrjain manishrjain merged commit 7531e95 into master Jul 16, 2021
@manishrjain manishrjain deleted the mrjn/fix-redial-join-cluster branch July 16, 2021 20:05
danielmai pushed a commit that referenced this pull request 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)
danielmai pushed a commit that referenced this pull request 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)
danielmai pushed a commit that referenced this pull request 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)
danielmai pushed a commit that referenced this pull request 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)
(cherry picked from commit c4098ed)
danielmai added a commit that referenced this pull request 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)

Co-authored-by: Manish R Jain <manish@dgraph.io>
danielmai added a commit that referenced this pull request 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)

Co-authored-by: Manish R Jain <manish@dgraph.io>
danielmai added a commit that referenced this pull request 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)

Co-authored-by: Manish R Jain <manish@dgraph.io>
danielmai added a commit that referenced this pull request 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)
(cherry picked from commit c4098ed)

Co-authored-by: Manish R Jain <manish@dgraph.io>
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.

None yet

1 participant