Bug 1102968 - [GSS](6.4.0)HHH-9231 Uncommitted data can remain in transactional collection cache after rollback if collection is initialized after flush
Summary: [GSS](6.4.0)HHH-9231 Uncommitted data can remain in transactional collection ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Hibernate
Version: 6.2.2
Hardware: Unspecified
OS: Unspecified
urgent
unspecified
Target Milestone: DR11
: EAP 6.4.0
Assignee: Gail Badner
QA Contact: Jan Martiska
URL:
Whiteboard:
Depends On:
Blocks: 1102974 1121629
TreeView+ depends on / blocked
 
Reported: 2014-05-30 00:19 UTC by Stephen Fikes
Modified: 2019-08-19 12:40 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
: 1102974 (view as bug list)
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)
EAP 6.2.2 test case based on EAP quick start (10.52 KB, application/zip)
2014-05-30 00:19 UTC, Stephen Fikes
no flags Details
EAP 6.2.2 test case based on EAP quick start (with README) (7.25 KB, application/octet-stream)
2014-05-30 14:03 UTC, Stephen Fikes
no flags Details
EAP 6.2.2 test case based on EAP quick start (with *corrected* README) (7.25 KB, application/octet-stream)
2014-05-30 22:55 UTC, Stephen Fikes
no flags Details

Description Stephen Fikes 2014-05-30 00:19:30 UTC
Created attachment 900571 [details]
EAP 6.2.2 test case based on EAP quick start

Description of problem:
After adding an entity to an association (collection) and rolling back the transaction, the reverted entity remains in the association in the level 2 cache.

Version-Release number of selected component (if applicable):
Hibernate 4.2.7.SP1

How reproducible:
Consistently

Steps to Reproduce:
1. Add element to an association (collection)
2. Persist the element added
3. flush
4. Navigate from the one side to the many side
5. Raise an exception which rolls back the transaction
6. Repeat the navigation from the one to the many side

Actual results:
At #6, a javax.persistence.EntityNotFoundException is thrown

Expected results:
The connection at #6 should not contain the rolled back entity

Additional info:
Possibly the same as https://hibernate.atlassian.net/browse/HHH-5690

Comment 1 Stephen Fikes 2014-05-30 14:03:09 UTC
Created attachment 900849 [details]
EAP 6.2.2 test case based on EAP quick start (with README)

Comment 2 Stephen Fikes 2014-05-30 22:55:07 UTC
Created attachment 901002 [details]
EAP 6.2.2 test case based on EAP quick start (with *corrected* README)

Comment 4 sgilda 2014-07-31 13:07:22 UTC
Per Bug 1125169, set the 'requires_doc_text' flag to '-' because it this one is targeted for 6.4 and duplicates Bug 1102974

Comment 5 Gail Badner 2014-11-21 02:46:23 UTC
Fixed for 6.4.0

Comment 6 Kabir Khan 2014-11-21 11:34:44 UTC
Fixed by Hibernate 4.2.16.Final upgrade https://bugzilla.redhat.com/show_bug.cgi?id=1121629

Comment 7 Jan Martiska 2014-11-27 12:19:48 UTC
Verified in EAP 6.4.0.DR11 / hibernate 4.2.16.Final-redhat-1


Note You need to log in before you can comment on or make changes to this bug.