You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our project the entityManager.flush() request leads to Transaction COMMIT, therefore data is not rolled back in case of RuntimeExceptions thrown within @transactional .
As i understand this is not correct behaviour, but tell me if i'm wrong.
You need to go to EclipseLinkTest test class, and run the buggyBehaviourTest().
Not sure what to add else, if you have question to specify, feel free to ask.
Dmitriy
The text was updated successfully, but these errors were encountered:
DmitryTen
changed the title
entityManager.flush() provides transaction COMMIT.
entityManager.flush() provides transaction COMMIT, while it shouldn't. Rollback doesn't happen.
Feb 9, 2024
In our project the entityManager.flush() request leads to Transaction COMMIT, therefore data is not rolled back in case of RuntimeExceptions thrown within @transactional .
As i understand this is not correct behaviour, but tell me if i'm wrong.
To reproduce the bug i've prepared a test project: https://github.com/DmitryTen/eclipse-link-bug
It runs with H2 DB, and should run out of the box.
You need to go to EclipseLinkTest test class, and run the buggyBehaviourTest().
Not sure what to add else, if you have question to specify, feel free to ask.
Dmitriy
The text was updated successfully, but these errors were encountered: