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

fix(agent): log exception instead of returning (revert #121) #134

Conversation

efiop
Copy link
Contributor

@efiop efiop commented May 21, 2024

We need to keep backward compatibility with older clients and they will have trouble unpickling a new exception, as we are sending these out pickled by reference and not by value (solving that would require serialization backend specific actions, which I would rather avoid for now to unblock a release).

Copy link

linear bot commented May 21, 2024

@efiop efiop force-pushed the ruslan/fea-2353-better-error-messages-handle-internal-errors-gracefully branch 5 times, most recently from 01b7a08 to c2764c2 Compare May 23, 2024 13:43
@efiop efiop changed the title [WIP] fix(agent): log exception instead of returning (revert #121) fix(agent): log exception instead of returning (revert #121) May 23, 2024
@efiop efiop changed the title fix(agent): log exception instead of returning (revert #121) [WIP] fix(agent): log exception instead of returning (revert #121) May 23, 2024
efiop added 2 commits May 23, 2024 17:39
We stopped always yielding stuff unconditionally, so now if you get
an error and use our own `abort_with_msg` we'll get an error
iterating responses, as we never yield anything and just return `None`.
So instead just use proper grpc `ServicerContext.abort()` method to
raise an exception instead.
We need to keep backward compatibility with older clients and they will
have trouble unpickling a new exception, as we are sending these out
pickled by reference and not by value (solving that would require
serialization backend specific actions, which I would rather avoid
for now to unblock a release).
@efiop efiop force-pushed the ruslan/fea-2353-better-error-messages-handle-internal-errors-gracefully branch 3 times, most recently from dfb83dc to a94fd5a Compare May 23, 2024 17:37
@efiop efiop changed the title [WIP] fix(agent): log exception instead of returning (revert #121) fix(agent): log exception instead of returning (revert #121) May 23, 2024
@efiop efiop marked this pull request as ready for review May 23, 2024 17:50
@efiop efiop merged commit 6563a56 into main May 23, 2024
6 checks passed
@efiop efiop deleted the ruslan/fea-2353-better-error-messages-handle-internal-errors-gracefully branch May 23, 2024 17:50
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.

1 participant