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

Retry on requests.exceptions.ConnectionError (again) #282

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

thorkildcognite
Copy link
Contributor

In a previous PR, we switched from retrying on requests connection errors to the internal Cognite exceptions that wrapped these. This fixed some of the issues encountered by the customer (SLB).

But, in some corner cases, such as for authorization, you can still get an unwrapped requests.exceptions.ConnectionError (as encountered by the customer). So we have to retry on both.

This re-adds the retry on ConnectionError in addition to the internal Cognite SDK classes, to be more resilient.

In a previous PR, we switched from retrying on requests connection
errors to the internal Cognite exceptions that wrapped these. This
fixed some of the issues encountered by the customer (SLB).

But, in some corner cases, such as for authorization, you can still
get an unwrapped requests.exceptions.ConnectionError (as seen by
the customer).

This re-adds the retry on ConnectionError in addition to the internal
Cognite SDK classes, to be more resilient.
@thorkildcognite thorkildcognite requested a review from a team as a code owner January 12, 2024 02:23
Copy link

codecov bot commented Jan 12, 2024

Codecov Report

Merging #282 (b3f8ed8) into master (e4ffd46) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #282      +/-   ##
==========================================
- Coverage   78.73%   78.71%   -0.02%     
==========================================
  Files          22       22              
  Lines        1970     1973       +3     
==========================================
+ Hits         1551     1553       +2     
- Misses        419      420       +1     
Files Coverage Δ
cognite/extractorutils/statestore.py 91.35% <100.00%> (+0.04%) ⬆️

... and 2 files with indirect coverage changes

@thorkildcognite thorkildcognite merged commit 6e228db into master Jan 12, 2024
6 checks passed
@thorkildcognite thorkildcognite deleted the readd-connection-retries branch January 12, 2024 09:55
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.

2 participants