-
Notifications
You must be signed in to change notification settings - Fork 340
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
SMB: errors ignored when connecting #1571
Comments
You are quite right! Would you like to implement a fix? |
I would suggest dropping the multiple tentative: if the connection is unstable, it should be up to the user to rely on some automatic retry mechanism such as tenacity or backoff. What is your opinion on that? |
I don't know what the user's workflow might be or how they would apply those tools, but in our own CI pipelines, SMB is unstable for some reason, and this loop makes tests fail less often. |
Since it is a problem with how the CI is configured, I would suggest applying such workaround to the CI only, |
Plenty of other implementations have retry loops for connection errors, why do you think it's a problem here? |
Well, I am not familiar with SMB, but generally a failing connection hints at some underlying issues. If SMB is intrinsically unstable, it would be nice to have a reference to in the code (why wait 0.1 seconds? why trying just 5 times?). Is SMB supposed to randomly fail? Is it a documented behavior? Or is it a common misconfiguration or glitch that the developer/user should be made aware of? |
The system tries to connect 5 times in a row, ignoring all errors. Since the for loop has no
else
branch, the function does not raise any error when all tentative failed.filesystem_spec/fsspec/implementations/smb.py
Lines 123 to 136 in 05e7d80
The text was updated successfully, but these errors were encountered: