-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[🐛 Bug]: serverErrorPolicy does retry on Exception
/ Error
#14917
Comments
@joerg1985, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
We used the library because it made sense at the moment. If you think a custom implementation is enough, I would be okay with that. I would not replace it all in a single PR, I would do the custom implementation, and remove the library bit by bit. |
I did not wanted to judge about using it in the past, i only wanted to show my currenty view on it. |
I did not mean it like that. We did not oversee any of the current issues. |
What happened?
The
serverErrorPolicy
inside theorg.openqa.selenium.remote.http.RetryRequest
does not only handle the server errors.It basically handles all
Exception
s /Error
s, i guess this is due tue a missunderstanding of the API of the library used here.This increases the retries on
ConnectException
to 5, instead of only 3.In general i think the use of this library is problematic, due to:
e.g.
ExecutionAttemptedEvent.getLastException
does return aThrowable
, so we have a potential class cast exception inselenium/java/src/org/openqa/selenium/remote/http/RetryRequest.java
Line 87 in 825b040
e.g. the javadoc of
RetryPolicy.handleIf
speaks about "exception" but meant is "throwable"This will probably lead to leaks, e.g. leaking
sub
in casepub
failes inselenium/java/src/org/openqa/selenium/events/zeromq/UnboundZmqEventBus.java
Lines 134 to 145 in 825b040
So i would like to ask: Glue some patches on the code and hope the code does what it should or remove the library with a custom implementation aka. a simple loop?
How can we reproduce the issue?
Relevant log output
Operating System
Win 10 x64
Selenium version
4.27.0
What are the browser(s) and version(s) where you see this issue?
N/A
What are the browser driver(s) and version(s) where you see this issue?
N/A
Are you using Selenium Grid?
No response
The text was updated successfully, but these errors were encountered: