Skip to content

Conversation

@DavideD
Copy link
Member

@DavideD DavideD commented Dec 18, 2025

Backport #2926 to 3.1

* Rename variable "rollback" to "markedForRollback"
* Change formattation
@DavideD DavideD added this to the 3.1.12.Final milestone Dec 18, 2025
@DavideD DavideD added bug Something isn't working quarkus The issue links an issue in Quarkus labels Dec 18, 2025
@DavideD DavideD linked an issue Dec 18, 2025 that may be closed by this pull request
There should not be any open transaction in progress when closing a connection.
The risk is to leave open connections pending and exhaust the pool.

Now, if the close operation detects an open transaction, it will roll
back it and throw a validation error before closing the connection.
@DavideD DavideD merged commit c4cde95 into hibernate:3.1 Dec 19, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.1 bug Something isn't working quarkus The issue links an issue in Quarkus

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Roll back live transaction when closing the connection

1 participant