Skip to content

GH-661: [Flight] JDBC: Cache failed locations #662

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lidavidm
Copy link
Member

What's Changed

Instead of repeatedly trying to access locations which have failed before, cache them and move them to the end of the list of locations to attempt on subsequent accesses. This provides a better user experience for Flight SQL services that return multiple locations in the expectation that the user may not be able to access some of them (but would have a better experience if they are).

Requires #494.

Closes #661.

This comment has been minimized.

@lidavidm lidavidm added the enhancement PRs that add or improve features. label Mar 10, 2025
@lidavidm lidavidm changed the title GH-661: [Flight] JDBC: cache failed locations GH-661: [Flight] JDBC: Cache failed locations Mar 10, 2025
Instead of repeatedly trying to access locations which have failed
before, cache them and move them to the end of the list of
locations to attempt on subsequent accesses.

Fixes apache#661.
@lidavidm lidavidm marked this pull request as ready for review April 8, 2025 07:00
@github-actions github-actions bot added this to the 18.3.0 milestone Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement PRs that add or improve features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Flight] JDBC driver: cache failed connection attempts
1 participant