Skip to content

Hardening transaction state #2123

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

Merged
merged 4 commits into from
Feb 17, 2025
Merged

Conversation

DavideD
Copy link
Member

@DavideD DavideD commented Feb 17, 2025

Fix #1514

@Sanne, In case you want to see what the error was

DavideD and others added 4 commits February 17, 2025 12:46
We need to test with Mutiny and with CompletionStage because
the exception is thrown by the API classes.

I've also cleaned up a bit the code to avoid NullPointerException
in case of failures (it should throw the correct assertion error).
Before, we were ignoring some errors if they were happening
in the worker provided to the transactions.
Because of this, the transaction wasn't always rollbacked or
closed.
@DavideD DavideD added this to the 3.0.0.Beta2 milestone Feb 17, 2025
@Sanne
Copy link
Member

Sanne commented Feb 17, 2025

Nice! Thanks

@DavideD DavideD merged commit beeae17 into hibernate:main Feb 17, 2025
19 checks passed
@DavideD DavideD removed this from the 3.0.0.Beta2 milestone Feb 20, 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.

Need to abort/rollback transactions on error
2 participants