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

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

Merged
merged 5 commits into from
Aug 24, 2023

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
compiler/build.gradle Outdated Show resolved Hide resolved
core/src/main/java/io/grpc/internal/ServerCallImpl.java Outdated Show resolved Hide resolved
core/src/main/java/io/grpc/internal/ServerCallImpl.java Outdated Show resolved Hide resolved
@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