Skip to content

Conversation

sebersole
Copy link
Member

@sebersole sebersole commented Sep 25, 2025

HHH-19774 - Automatic flushing for child session with shared connection/tx
HHH-19808 - Automatic closing for child session with shared connection/tx


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

private static void setUpTransactionCompletionProcesses(
SessionCreationOptions options,
ActionQueue actionQueue,
SessionImpl childSession) {

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'childSession' is never used.
*
* @author Steve Ebersole
*/
public interface ParentSessionCallbacks {
Copy link
Member

Choose a reason for hiding this comment

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

How about something like FlushObserver?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because its also about closing.

Copy link
Member Author

Choose a reason for hiding this comment

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

fwiw I did rename it ParentSessionObserver. Listener would have been better too.

@sebersole sebersole marked this pull request as draft September 29, 2025 20:10
@sebersole
Copy link
Member Author

The changes cause one test to hang, though just on some databases. Need to investigate some more.

…on/tx

HHH-19808 - Automatic closing for child session with shared connection/tx
…on/tx

HHH-19808 - Automatic closing for child session with shared connection/tx
…on/tx

HHH-19808 - Automatic closing for child session with shared connection/tx
…on/tx

HHH-19808 - Automatic closing for child session with shared connection/tx
@sebersole
Copy link
Member Author

Rebased, squashed and applied upstream

@sebersole sebersole closed this Oct 2, 2025
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.

2 participants