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

DM-47357: Explicitly configure timeouts for fsspec #99

Merged
merged 5 commits into from
Nov 9, 2024

Conversation

airnandez
Copy link
Contributor

The default timeout and number of TCP connections kept alive by fsspec' HTTPFileSystem are not suitable for production conditions so we set them to more reasonable values based on observed behavior.

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

The default timeout and number of TCP connections kept alive by
fsspec' HTTPFileSystem are not suitable for production conditions
so we set them to more reasonable values based on observed
behavior.
Copy link

codecov bot commented Nov 5, 2024

Codecov Report

Attention: Patch coverage is 64.81481% with 19 lines in your changes missing coverage. Please review.

Project coverage is 86.80%. Comparing base (d73b774) to head (89e2b36).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
tests/test_http.py 72.72% 8 Missing and 1 partial ⚠️
python/lsst/resources/http.py 57.89% 7 Missing and 1 partial ⚠️
python/lsst/resources/tests.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #99      +/-   ##
==========================================
- Coverage   86.89%   86.80%   -0.10%     
==========================================
  Files          27       27              
  Lines        4656     4690      +34     
  Branches      564      566       +2     
==========================================
+ Hits         4046     4071      +25     
- Misses        466      474       +8     
- Partials      144      145       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@dhirving dhirving left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

This feature has shown undesired behavior in some situations and
the root cause of that behavior is not totally understood. We
provide the possibility of explicitly enable that feature if
proven useful or for testing purposes.
When HttpResourcePath is configured with support for to_fsspec()
disabled a ImportError exception must be raised to signal the caller
that that method is not supported. Make the exception message explicit.
@airnandez airnandez merged commit 31881f6 into main Nov 9, 2024
15 of 17 checks passed
@airnandez airnandez deleted the tickets/DM-47357 branch November 9, 2024 17:27
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.

2 participants