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

ContextNotActive Exception When Chaining Reactive Calls #16890

Closed
toandeaf opened this issue Apr 28, 2021 · 2 comments · Fixed by #16830
Closed

ContextNotActive Exception When Chaining Reactive Calls #16890

toandeaf opened this issue Apr 28, 2021 · 2 comments · Fixed by #16830
Labels
area/kotlin kind/bug Something isn't working
Milestone

Comments

@toandeaf
Copy link

Describe the bug

ContextNotActive Exceptions When Chaining Reactive Calls Across Stack

Expected behavior

User should be able to make a REST call to a reactive route, which in turn calls a reactive gRPC client, which interfaces with a reactive Hibernate panache repository.

Actual behavior

When not interfacing with the repository, user is able to make a REST call which calls a reactive gRPC client which gets picked up and processed by gRPC server implementation in separate module. When making the gRPC call then process a repository action, it throws a ContextNotActive Exception.

When calling the gRPC service directly and not via REST route, both the gRPC call and the repository action work successfully. Only when chaining this does the issue arise.

To Reproduce

https://github.com/toandeaf/backup

I have recreated a stripped down version of my project with the services causing the issue.

Steps to reproduce the behavior:

  • gradle user:buildNeeded
  • gradle api:buildNeeded
  • docker-compose up
  • gradle user:quarkusDev
  • gradle api:quarkusDev
  • Curl/hit either localhost:8080/user/test or localhost:8080/userReactive/test to recreate issue.

Should see ContextNotActive exception.

Screenshots

(If applicable, add screenshots to help explain your problem.)

Environment (please complete the following information):

Development

Output of uname -a or ver

20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu-7195.81.3~1/RELEASE_X86_64 x86_64

Output of java -version

openjdk version "11.0.10" 2021-01-19
OpenJDK Runtime Environment GraalVM CE 21.0.0 (build 11.0.10+8-jvmci-21.0-b06)
OpenJDK 64-Bit Server VM GraalVM CE 21.0.0 (build 11.0.10+8-jvmci-21.0-b06, mixed mode, sharing)

GraalVM version (if different from Java)

Quarkus version or git rev

1.13.2.Final

Build tool (ie. output of mvnw --version or gradlew --version)

Gradle 6.8.2

Additional context

Kotlin: 1.4.20

@toandeaf toandeaf added the kind/bug Something isn't working label Apr 28, 2021
@quarkus-bot
Copy link

quarkus-bot bot commented Apr 28, 2021

/cc @evanchooly

@toandeaf
Copy link
Author

/cc @michalszynkiewicz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kotlin kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant