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 4 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

if (current != null && current.isOpen()) {
return current;
}
return null;
}

private static <T> Map<Key<T>, T> contextualDataMap(ContextInternal vertxContext) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of duplicating this method here, we could make it public in Hibernate Reactive and keep the ContextualDataStorage.CONTEXTUAL_DATA_KEY private.

By doing so, the implementation details about how the ConcurrentMap is created/retrieved remains hidden, yet the consumers can manipulate the data it holds.

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.

2 participants