Skip to content

Fix reporting RpcException from server streaming error #2034

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

Merged
merged 3 commits into from
Feb 1, 2023

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented Feb 1, 2023

Fixes #2032

If all of the below are true, fix throwing the status from the server in the client:

  • Channel is throwing OperationCanceledException
  • Call is made to server streaming method
  • Server streaming method returns non-OK status before streaming result
  • Client doesn't await server headers

Verified

This commit was signed with the committer’s verified signature.
JamesNK James Newton-King

Verified

This commit was signed with the committer’s verified signature.
JamesNK James Newton-King

Verified

This commit was signed with the committer’s verified signature.
JamesNK James Newton-King
@JamesNK JamesNK changed the title Add server streaming error test Fix reporting RpcException from server streaming error Feb 1, 2023
Copy link
Contributor

@mgravell mgravell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems fine

@JamesNK JamesNK merged commit 2cdbf1c into grpc:master Feb 1, 2023
@JamesNK JamesNK deleted the jamesnk/serverstreaming-test branch February 1, 2023 23:02
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.

TaskCanceledException instead of expected exception in server streaming call
2 participants