Skip to content

Panache and Hibernate Reactive use different Vert.x local contexts #47441

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

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DavideD
Copy link
Contributor

@DavideD DavideD commented Apr 18, 2025

Possible fix for #47314

Draft because it needs these changes in Hibernate Reactive (next release).
@tsegismont, or @vietj, Do these changes make sense?

Thanks

@tsegismont
Copy link
Contributor

@DavideD it seems there are unrelated changes in this PR, correct?

@DavideD
Copy link
Contributor Author

DavideD commented Apr 22, 2025

Quarkus main changes quickly, but this is the important commit:
e67c91b

@DavideD
Copy link
Contributor Author

DavideD commented Apr 22, 2025

Nevermind, I rebased it and now this is the commit with the important changes: 3093299

DavideD added 2 commits April 24, 2025 11:39
In preparation to the upgrade to Vertx. 5, Hibernate Reactive
doesn't use anymore the deprecated API to access the local context.

This commits updates the way Panache access the context so that the
two extensions can comunicate.

Fix quarkusio#47314
Relats to the Hibernate Reactive issues:
* hibernate/hibernate-reactive#2176
* hibernate/hibernate-reactive#2174
* hibernate/hibernate-reactive#2207
@DavideD
Copy link
Contributor Author

DavideD commented Apr 24, 2025

@tsegismont I moved the method to access the map in ContextualDataStorage, and updated this PR. Would this work?

Do you think I also need to udpate the following code in VertxContextSafety? I don't think so but I'm not sure.

Copy link
Contributor

@tsegismont tsegismont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me, thank you @DavideD

@tsegismont
Copy link
Contributor

Do you think I also need to udpate the following code in VertxContextSafety? I don't think so but I'm not sure.

We could avoid to retrieve the Vert.x context twice, is that what you were thinking about?

Copy link
Member

@FroMage FroMage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I suppose this will require a similar fix in my Panache 2 branch, due to me adding stateless sessions support in the same area.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core area/dependencies Pull requests that update a dependency file area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/docstyle issues related for manual docstyle review area/documentation area/hibernate-validator Hibernate Validator area/maven area/mongodb area/oidc area/panache area/rest area/rest-client area/testing area/tracing area/vertx
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants