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

Support DataNode connection reuse #80

Merged
merged 8 commits into from
Feb 22, 2024
Merged

Support DataNode connection reuse #80

merged 8 commits into from
Feb 22, 2024

Conversation

Kimahriman
Copy link
Owner

Resolves #79

Adds a static DataNode connection cache with a three second expiry, the default the Hadoop client uses. Connections are only purged from the cache when a connection is retrieved from the cache, and we will try up to three cached connections before falling back to creating a new connection. This should help speed up multiple reads to the same file/DataNode in fast succession.

@Kimahriman Kimahriman merged commit cf2c49e into master Feb 22, 2024
7 checks passed
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.

Support DataNode connection caching
1 participant