Skip to content

Handle exception in servers sendMessage better (v1.58 backport of #10513)#10520

Merged
larry-safran merged 2 commits intogrpc:v1.58.xfrom
larry-safran:backport-health_checker-1.58
Aug 29, 2023
Merged

Handle exception in servers sendMessage better (v1.58 backport of #10513)#10520
larry-safran merged 2 commits intogrpc:v1.58.xfrom
larry-safran:backport-health_checker-1.58

Conversation

@larry-safran
Copy link
Contributor

When server side sendMessage throws a RuntimeException, call handleInternalError() (previously internalClose) rather than close. This will log a warning.
rename internalClose to handleInternalError and change argument from a Status to a Throwable.

Allows more debugging of #10500

Backport of #10513

…o stream and allow multiple closes (grpc#10513)

* Use internalClose instead of close when sendMessage has a RuntimeException.
* Change argument to internalClose to a Throwable instead of a Status.
* Rename internalClose to handleInternalError
@larry-safran larry-safran added this to the 1.58 milestone Aug 24, 2023
@larry-safran larry-safran changed the title Handle exception in servers sendMessage better Handle exception in servers sendMessage better (v1.58 backport of #10513) Aug 24, 2023
@larry-safran larry-safran added the kokoro:force-run Add this label to a PR to tell Kokoro to re-run all tests. Not generally necessary label Aug 25, 2023
@larry-safran larry-safran reopened this Aug 29, 2023
@larry-safran larry-safran reopened this Aug 29, 2023
@grpc-kokoro grpc-kokoro removed the kokoro:force-run Add this label to a PR to tell Kokoro to re-run all tests. Not generally necessary label Aug 29, 2023
@larry-safran larry-safran merged commit 42e6788 into grpc:v1.58.x Aug 29, 2023
@larry-safran larry-safran deleted the backport-health_checker-1.58 branch August 29, 2023 23:09
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants