-
-
Notifications
You must be signed in to change notification settings - Fork 228
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
Occasional failure in HTTP bytes #85
Comments
I'm not sure there's much we can do about broken connections, I can't see that it could be any fault of ours; retries could be built into the HTTPFileSystem, but perhaps it's better to retry the whole tasks in such cases. |
Is there a good reason to avoid retries in |
No, but a couple of things that make it tricky:
|
This SO answer might be the best way to do it globally: https://stackoverflow.com/a/15431343/3821154 , allows you to be explicit about retries following a connection error that should apply to all connections within a session |
Quite some refactoring of fsspec's HTTP implementation lately. Are |
HTTPFileSystem might now return a HTTPStreamFile where previously it returned a raw file-like requests response object. I don't think this changes anything from dask's point of view, except that we don't even try the "lets see if this is smaller than a block" approach. A retry would have to be for the whole of the request, not each call to read. However, a retry on establishing the connection (here) would make sense. |
(feel free to implement that in a PR, in case you have the time) |
When running CI in this project I sometimes run across the following error:
@martindurant , this seems to be in your general domain. Do you have any suggestions on what might be happening here?
The text was updated successfully, but these errors were encountered: