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

Handle connection errors during list_obj calls gracefully #821

Merged
merged 3 commits into from Sep 3, 2021

Conversation

psontag
Copy link
Contributor

@psontag psontag commented Aug 21, 2021

This should catch any errors that occur during the initial listing of the objects, even those that make it through the retries.
The listing should then be retried automatically like usual when the continuous watch ends.

I am not sure if this is the best way to fix this. I am not that familiar with the code base yet. So if you have any recommendations here let me know.

closes: #787

Signed-off-by: Philipp Sontag <philipp.sontag@blueyonder.com>
@psontag psontag marked this pull request as ready for review August 21, 2021 15:44
@psontag psontag requested a review from nolar as a code owner August 21, 2021 15:44
The reason will be logged several log lines above — when the API retrying fails with an exception.

The restart is better to be silent on errors in listing — the same way as it is silent on errors in streaming.
@nolar
Copy link
Owner

nolar commented Sep 3, 2021

I've made several corrections regarding logging: to not log the reason of the stream restart — the same as it happens when the streaming API call fails, for consistency. The error is not silenced anyway — the API retrying routines will complain about the error as needed.

@nolar nolar merged commit fa12e3e into nolar:main Sep 3, 2021
@psontag
Copy link
Contributor Author

psontag commented Sep 6, 2021

Hey @nolar thanks for merging the PR 👍 .
Do you have an ETA for the next release?

@nolar
Copy link
Owner

nolar commented Sep 6, 2021

@philipp-sontag-by I can make an RC this weekend — I just want to run through all issues and see if anything else is easily doable — to release all the quick fixes at once (while trying to catch the joy of the last days of warm & sunny weather).

@psontag
Copy link
Contributor Author

psontag commented Sep 6, 2021

Ok, no worries take your well earned time off 👍

@nolar
Copy link
Owner

nolar commented Sep 12, 2021

Pre-released as kopf==1.34rc1 (link) — can be installed via pip and checked.

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.

Watch stream dies without recovering
2 participants