"Hibernate Reactive Panache requires a safe (isolated) Vert.x sub-context, but the current context hasn't been flagged as such." when using Smallrye Messaging #35106
Labels
area/hibernate-reactive
Hibernate Reactive
area/panache
area/smallrye
kind/bug
Something isn't working
Describe the bug
Scenario: EntityA get's persisted, notification with entity is sent through message channel, receiver creates EntityB and links it to EntityA
This leads to the following error:
I'm not sure if it is a Quarkus / Vert.X bug or if I'm missing something in my implementation.
The message is sent from within a transaction, and as I'm not using the
@Broadcast
annotation, I guess the transaction might still be open on the receiver-side or at least the same session is getting used. Is this true?Are there any best / bad practices for using transactions / sessions accross a message bus?
Is also related to #34291 but decided to open a new issue with the reproducer that is not kafka-related
Expected behavior
To save the second entity without issues.
Actual behavior
No response
How to Reproduce?
https://github.com/mklueh/quarkus-reactive-reproducer-context-not-flagged
Run the test inside the test package
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: