Skip to content

fix: enable OkHttp retries for connection failure#359

Merged
rhajek merged 4 commits intomasterfrom
retry-on-connection
Jun 3, 2022
Merged

fix: enable OkHttp retries for connection failure#359
rhajek merged 4 commits intomasterfrom
retry-on-connection

Conversation

@bednar
Copy link
Copy Markdown
Contributor

@bednar bednar commented Jun 3, 2022

Proposed Changes

This PR enables OkHttp retries strategy for connection failures.

We don't need to disable the retryOnConnectionFailure. The retry logic in the OkHttp is not in a collision with our exponential backoff strategy for writes. OkHttp logic uses the possibility of routing to another "routes" - e.g. network loopback or multiple proxies.

For more info see:

Checklist

  • CHANGELOG.md updated
  • Rebased/mergeable
  • mvn test completes successfully
  • Commit messages are conventional
  • Sign CLA (if not already signed)

@bednar bednar requested a review from rhajek June 3, 2022 07:14
@bednar bednar marked this pull request as ready for review June 3, 2022 07:14
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 3, 2022

Codecov Report

Merging #359 (4ddca91) into master (99208f5) will decrease coverage by 0.00%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #359      +/-   ##
============================================
- Coverage     88.99%   88.98%   -0.01%     
  Complexity      634      634              
============================================
  Files           155      155              
  Lines          6340     6339       -1     
  Branches        302      302              
============================================
- Hits           5642     5641       -1     
  Misses          612      612              
  Partials         86       86              
Impacted Files Coverage Δ
...fluxdb/client/internal/AbstractInfluxDBClient.java 93.22% <ø> (-0.12%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 99208f5...4ddca91. Read the comment docs.

@bednar bednar added this to the 6.2.0 milestone Jun 3, 2022
@bednar bednar added the bug Something isn't working label Jun 3, 2022
@rhajek rhajek merged commit 0e166e6 into master Jun 3, 2022
@rhajek rhajek deleted the retry-on-connection branch June 3, 2022 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants