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

Disable retry on connection failure for okhttp3 tests #2154

Merged
merged 1 commit into from
Feb 2, 2021

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Feb 1, 2021

Related to #2153
OkHttp3AsyncTest waits for request to complete with latch.await(30, SECONDS) if response or failure is not received in this time then the request will fail with NullPointerException by reading response that it has not received yet.
HttpClientTest "connection error dropped request" expects the request to fail, connection timeout is set to 5s. Usually it completes in ~10s without retry it completes in ~5s. Same test with okhttp2 does not retry the request and completes in 5s.
This PR removes retry from okhttp3 in the hopes that this makes test less flaky. I have seen this failure multiple times, but I have not seen a similar failure for okhttp2.

@anuraaga
Copy link
Contributor

anuraaga commented Feb 2, 2021

@laurit Can you update the PR description with the motivation of the change? I don't quite understand how connection retry is related to the issue linked.

@anuraaga
Copy link
Contributor

anuraaga commented Feb 2, 2021

Thanks!

@anuraaga anuraaga merged commit 32c34de into open-telemetry:main Feb 2, 2021
@laurit laurit deleted the disable-okhttp-retry branch February 4, 2021 20:53
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.

None yet

4 participants