[grid] rework the retry of http requests #14917#14924
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
CI Failure Feedback 🧐(Checks updated until commit 47fc765)
✨ CI feedback usage guide:The CI feedback tool (
In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR: where Configuration options
See more information about the |
35b4af8 to
d3021cd
Compare
diemol
left a comment
There was a problem hiding this comment.
Just a couple of comments, but this looks very close to what I had in mind when you raised the ticket.
d3021cd to
83ba65f
Compare
|
@diemol i have updated the PR with some inline comments. |
…#14924) Co-authored-by: Diego Molina <diemol@users.noreply.github.com>
User description
Description
Remove the use of
dev.failsafeinside theRetryRequestwith a simple loop.There is also a functional change,
Exceptions and error responses are delivered unmodified to the caller.This will allow the caller to handle the original
Exception/ error response, so we do not loose data here.The old mapping did also not return a valid W3C response, so the client should not have been able to decode it.
Motivation and Context
see #14917
Types of changes
Checklist
PR Type
Bug fix, Enhancement
Description
dev.failsafelibrary with a custom retry implementation using a simple loop mechanismdev.failsafelibraryChanges walkthrough 📝
RetryRequest.java
Refactor HTTP request retry mechanism with custom implementationjava/src/org/openqa/selenium/remote/http/RetryRequest.java
dev.failsafelibrary with a simple retry loop implementationresponses
errors
RetryRequestTest.java
Expand test coverage for RetryRequest implementationjava/test/org/openqa/selenium/remote/http/RetryRequestTest.java
BUILD.bazel
Remove failsafe dependency from build configurationjava/src/org/openqa/selenium/remote/http/BUILD.bazel
dev.failsafelibrary