-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
base: main
Are you sure you want to change the base?
Conversation
@DavideD it seems there are unrelated changes in this PR, correct? |
|
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) { |
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.
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.
Possible fix for #47314
Draft because it needs these changes in Hibernate Reactive (next release).
@tsegismont, or @vietj, Do these changes make sense?
Thanks