-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
gRPC: fix request context propagation #17946
gRPC: fix request context propagation #17946
Conversation
extensions/grpc/runtime/src/main/java/io/quarkus/grpc/runtime/health/GrpcHealthEndpoint.java
Outdated
Show resolved
Hide resolved
...untime/src/main/java/io/quarkus/grpc/runtime/supports/blocking/BlockingExecutionHandler.java
Show resolved
Hide resolved
...rc/main/java/io/quarkus/grpc/runtime/supports/context/GrpcRequestContextGrpcInterceptor.java
Outdated
Show resolved
Hide resolved
Looks good on the first sight, but I don't truly understand how gRPC is integrated / how a gRPC request is processed to provide any meaningful review. |
689b9ef
to
1c94d97
Compare
This workflow status is outdated as a new workflow run has been triggered. 🚫 This workflow run has been cancelled. Failing Jobs - Building 689b9ef
|
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building 1c94d97
Full information is available in the Build summary check run. Test Failures⚙️ JVM Tests - JDK 11 Windows #📦 integration-tests/grpc-hibernate-reactive✖ 📦 integration-tests/grpc-hibernate✖ |
ddc3e3c
to
61b4bb8
Compare
This workflow status is outdated as a new workflow run has been triggered. |
61b4bb8
to
d4ebd6b
Compare
This workflow status is outdated as a new workflow run has been triggered. 🚫 This workflow run has been cancelled. Failing Jobs - Building 61b4bb8
Full information is available in the Build summary check run. Test Failures⚙️ Maven Tests - JDK 11 #📦 integration-tests/maven✖ |
...untime/src/main/java/io/quarkus/grpc/runtime/supports/blocking/BlockingExecutionHandler.java
Show resolved
Hide resolved
...untime/src/main/java/io/quarkus/grpc/runtime/supports/blocking/BlockingExecutionHandler.java
Show resolved
Hide resolved
...ntime/src/main/java/io/quarkus/grpc/runtime/supports/blocking/BlockingServerInterceptor.java
Outdated
Show resolved
Hide resolved
e242827
to
c62fe3b
Compare
This workflow status is outdated as a new workflow run has been triggered. |
...ration-tests/grpc-hibernate-reactive/src/main/java/com/example/reactive/ReactiveService.java
Outdated
Show resolved
Hide resolved
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.
Looks good, baring one little comment about testing. Also, maybe squash the commits now?
(I originally asked for a separate commit to see the changes you did after our Friday call, but we should probably squash before merging.)
56e7d9c
to
4c4c032
Compare
if (contextChecker.requestContextId() != contextId) { | ||
throw new RuntimeException("Different context for onCompleted and RawTestService#bidi method"); | ||
} | ||
if (!requestContext.isActive()) { | ||
throw new RuntimeException("Request context not active for `onCompleted`"); | ||
} |
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.
Exception messages here don't correspond to present code. There's no onCompleted
here, and there's no RawTestService#bidi
.
Sorry to be such a pain :-)
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 for catching it, I wanted to be quick, sorry.
4c4c032
to
18ed189
Compare
This workflow status is outdated as a new workflow run has been triggered. 🚫 This workflow run has been cancelled. Failing Jobs - Building 4c4c032
|
This looks a bit too involved to get backported but I'm not sure how critical the fix is? Given there's no backport label, I understand you didn't plan to backport it? |
I think it should be backported, I'll add the label. |
18ed189
to
dcb9e97
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.
From my limited understanding PoV, this looks fairly good :-)
@mkouba I let you have a look and merge it if it's fine for you. |
The tests for security should not in any way be impacted by this change and they failed with downloading maven repo :| :
|
@gsmet I don't think it makes sense to rerun these tests, WDYT? |
Agreed, merging. |
Ah no, I'll let @mkouba have a look if he can and merge tomorrow if we don't hear from him as it would be better to have it in 2.0.0.Final. |
...ntime/src/main/java/io/quarkus/grpc/runtime/supports/blocking/BlockingServerInterceptor.java
Show resolved
Hide resolved
dcb9e97
to
8b9c8b2
Compare
Failing Jobs - Building 8b9c8b2
Full information is available in the Build summary check run. Test Failures⚙️ JVM Tests - JDK 11 #📦 integration-tests/opentelemetry✖ 📦 integration-tests/scala✖ ✖ ⚙️ JVM Tests - JDK 11 Windows #📦 integration-tests/scala✖ ✖ ⚙️ JVM Tests - JDK 16 #📦 integration-tests/scala✖ ✖ |
No description provided.