Skip to content

Log warning message when server side gets exception writing message to stream and allow multiple closes#10513

Merged
larry-safran merged 5 commits intogrpc:masterfrom
larry-safran:health_checker
Aug 24, 2023
Merged

Log warning message when server side gets exception writing message to stream and allow multiple closes#10513
larry-safran merged 5 commits intogrpc:masterfrom
larry-safran:health_checker

Conversation

@larry-safran
Copy link
Contributor

@larry-safran larry-safran commented Aug 23, 2023

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

…o stream. Change the case where close is called twice from an error to a noop.

Fix aarch_64 macs not being able to build the compiler module.
@larry-safran larry-safran requested a review from temawi August 23, 2023 01:14
@larry-safran larry-safran merged commit 92174be into grpc:master Aug 24, 2023
@larry-safran larry-safran deleted the health_checker branch August 24, 2023 23:40
larry-safran added a commit to larry-safran/grpc-java that referenced this pull request Aug 24, 2023
…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 added a commit to larry-safran/grpc-java that referenced this pull request Aug 29, 2023
…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 added a commit that referenced this pull request Aug 29, 2023
) (#10520)

* Log warning message when server side gets exception writing message to stream and allow multiple closes (#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

* Update ServerCallImplTest.java
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 23, 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.

2 participants