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

Updatable connection pool #21

Merged
merged 9 commits into from
May 2, 2024
Merged

Updatable connection pool #21

merged 9 commits into from
May 2, 2024

Conversation

Anaethelion
Copy link
Contributor

This PR introduces an UpdatableConnectionPool interface into the transport, primarily used in statusConnectionPool.

This addresses the problem highlighted in #20 related to the eventual pool swap between a call to pool.Next and the follow-up call to pool.OnFailure.
Nodes discovery could swap out the pool in between retries resulting in an unknown state for connection pool.

We now update the existing connection pool to be up to date with the latest known state provided by the cluster.

@Anaethelion Anaethelion marked this pull request as ready for review May 2, 2024 11:28
@Anaethelion Anaethelion merged commit dca6947 into main May 2, 2024
16 checks passed
@Anaethelion Anaethelion deleted the updatable-connection-pool branch May 2, 2024 11:36
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.

1 participant