PostCommitListeners are called during rollback

Description

EntityActions that are registered as part of transaction completion are still called when the transaction didn't succeed.

As an example, the DeleteEntityAction

The success is false in the event of a rollback so it doesn't update the cache but it still calls the postCommitDelete which triggers the postCommitDelete listeners. I would think this should only occur in the event that the transaction was actually committed.

To add insult to injury the ActionQueue will also add failed actions to the after transaction completion queue and invalidate the query spaces.

Activity

Show:

Brett MeyerApril 8, 2014 at 3:56 PM

, thanks much!

Shawn ClowaterApril 8, 2014 at 3:26 PM

Brett, you can close this one outright. I submitted a patch under HHH-1582.

Brett MeyerApril 7, 2014 at 5:47 PM

In an effort to clean up, in bulk, tickets that are most likely out of date, we're transitioning all ORM 3 tickets to an "Awaiting Test Case" state. Please see http://in.relation.to/Bloggers/HibernateORMJIRAPoliciesAndCleanUpTactics for more information.

If this is still a legitimate bug in ORM 4, please provide either a test case that reproduces it or enough detail (entities, mappings, snippets, etc.) to show that it still fails on 4. If nothing is received within 3 months or so, we'll be automatically closing them.

Thank you!

Shawn ClowaterSeptember 18, 2012 at 1:25 AM

This appears to be a dupe of https://hibernate.onjira.com/browse/HHH-1582, noticed some chatter on that one on the distribution list and remembered that I had raised a similar issue.

Duplicate

Details

Assignee

Reporter

Components

Affects versions

Priority

Created July 13, 2011 at 2:40 AM
Updated April 8, 2014 at 3:56 PM
Resolved April 8, 2014 at 3:56 PM