Skip to content

HHH-8585 Fix interceptor exception in beforeTransactionCompletion swallowed instead of aborting commit - #13200

Open
SeanOkafor wants to merge 1 commit into
hibernate:mainfrom
SeanOkafor:HHH-8585
Open

HHH-8585 Fix interceptor exception in beforeTransactionCompletion swallowed instead of aborting commit #13200
SeanOkafor wants to merge 1 commit into
hibernate:mainfrom
SeanOkafor:HHH-8585

Conversation

@SeanOkafor

@SeanOkafor SeanOkafor commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

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

Exceptions thrown in Interceptor.beforeTransactionCompletion() were being caught and logged but not re-thrown, allowing the transaction to commit despite the interceptor objecting. The exception is now thrown after logging so that it aborts the commit as expected.

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.



Please make sure that the following tasks are completed:
Tasks specific to HHH-8585 (Bug):

  • Add test reproducing the bug
  • Add entries as relevant to migration-guide.adoc OR check there are no breaking changes

@sonarqubecloud

Copy link
Copy Markdown

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.

1 participant