-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Remove ThreadlessExecutor from BlockingServerStream #10496
Conversation
@@ -288,8 +281,7 @@ private static StatusRuntimeException toStatusRuntimeException(Throwable t) { | |||
private static RuntimeException cancelThrow(ClientCall<?, ?> call, Throwable t) { | |||
try { | |||
call.cancel(null, t); | |||
} catch (Throwable e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assertion can be disabled. So this change may skip logging some error messages, its safer to not change it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The assertion is checking for checked exceptions, which should't happen. Catching Throwable was because this was written before we could write RuntimeException | Error
. I'm not worried about this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only a minor comment.
cc. @ejona86
@@ -288,8 +281,7 @@ private static StatusRuntimeException toStatusRuntimeException(Throwable t) { | |||
private static RuntimeException cancelThrow(ClientCall<?, ?> call, Throwable t) { | |||
try { | |||
call.cancel(null, t); | |||
} catch (Throwable e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The assertion is checking for checked exceptions, which should't happen. Catching Throwable was because this was written before we could write RuntimeException | Error
. I'm not worried about this change.
* Remove ThreadlessExecutor from BlockingServerStream fixes grpc#10490
fixes #10490