Audit records are not rolled back when transaction is rolled back

Description

Looks like the resolved bug 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

Environment

None

Activity

Show:
Martin Frey
April 17, 2013, 12:11 PM

Whyever i wrote down the wrong bug number...

I meant this one : - Audit records are not rolled back when transaction is rolled back

Lukasz Antoniak
April 17, 2013, 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.

Lukasz Antoniak
April 17, 2013, 2:13 PM

Fixed. Thanks for the bug report.

Fixed

Assignee

Lukasz Antoniak

Reporter

Martin Frey

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure