Audit records are not rolled back when transaction is rolled back

Description

Looks like the resolved bug https://hibernate.atlassian.net/browse/HHH-7683#icft=HHH-7683 was missed to take over into version 4.xxx.

At least in 4.2.0.Final i can reproduce this bug and I was able to fix the issue with the provided code by Tomasz Dziurko so i suppose his code is still valid for 4.2.0

Activity

Show:

Lukasz AntoniakApril 17, 2013 at 2:13 PM

Fixed. Thanks for the bug report.

Lukasz AntoniakApril 17, 2013 at 1:24 PM

Test case has been pushed to 4.x branch as well: https://github.com/hibernate/hibernate-orm/blob/4.2/hibernate-envers/src/test/java/org/hibernate/envers/test/integration/basic/TransactionRollbackBehaviour.java.
I was able to reproduce the issue by performing manual flush. Issue will be fixed shortly.

Martin FreyApril 17, 2013 at 12:11 PM

Whyever i wrote down the wrong bug number...

I meant this one : https://hibernate.atlassian.net/browse/HHH-7682#icft=HHH-7682 - Audit records are not rolled back when transaction is rolled back

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Priority

Created April 17, 2013 at 12:10 PM
Updated April 25, 2013 at 2:01 PM
Resolved April 17, 2013 at 2:13 PM