Skip to content

Conversation

@jrenaat
Copy link
Member

@jrenaat jrenaat commented Jan 9, 2025

Basic proxies were being created with a shared interceptor. As the interceptor is stateful, this lead to cross-thread data leakage and thus intermittently broken persistence. This mod creates an interceptor per proxy, preventing leaking of state.

(Originally submitted by @bighenry for 5.6)


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


https://hibernate.atlassian.net/browse/HHH-13915

Basic proxies were being created with a shared interceptor.  As the interceptor is stateful, this lead to cross-thread data leakage and thus intermittently broken persistence.
This mod creates an interceptor per proxy, preventing leaking of state.
@gavinking
Copy link
Member

It would be nice to simply delete the code involving these "basic proxies", since they're currently only used for some rather obscure features of hbm.xml. But while those features remain in existence, I guess it's better if they actually work.

@jrenaat jrenaat merged commit 0452d76 into hibernate:main Jan 10, 2025
25 checks passed
@jrenaat jrenaat deleted the HHH-13915 branch January 10, 2025 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants