-
Notifications
You must be signed in to change notification settings - Fork 927
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
Fix blocking annotation not working on gRPC calls properly #5399
Fix blocking annotation not working on gRPC calls properly #5399
Conversation
The current plan is to deprecate |
Do you prefer to close this PR and continue with the long term approach or resolve this issue first and iteratively move towards the ultimate goal of removing blocking executor? |
Both are fine by me. Let me know if you need this PR to be merged, we'd be happy to accept it given it will take quite some time until we fix this properly. 😅 |
I think this is a pretty important issue for teams with less experience. Previously, I have went ahead and added tests to verify this fix works PTAL. |
32e4b01
to
b68335e
Compare
Bump |
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.
Sorry for the late review. 😅 Left a comment for the direction.
grpc/src/main/java/com/linecorp/armeria/server/grpc/FramedGrpcService.java
Outdated
Show resolved
Hide resolved
bd14f7f
to
96ea44f
Compare
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.
Thanks, @Dogacel! 👍👍
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.
Thanks, @Dogacel! 👍
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.
👍 👍 👍
Checked CI results:
|
Motivation:
#5295
Modifications:
ctx
to determine whether the blocking task executor should be used or not.Result:
@Blocking
annotation forgrpc
+kotlin
doesn't change the backing thread of coroutines #5295Maybe we could have just checked whether the
blockingTaskExecutor
is null or not but I did not like that idea. Also this is the recommended way in the issue description.Will add tests soon.