Bug 1102974

Summary: [GSS](6.3.1)HHH-9231 Uncommitted data can remain in transactional collection cache after rollback if collection is initialized after flush
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Stephen Fikes <sfikes>
Component: HibernateAssignee: Gail Badner <gbadner>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Simka <msimka>
Severity: unspecified Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.2.2CC: bbaranow, cdewolf, jawilson, msimka, myarboro, smumford
Target Milestone: CR1Keywords: Triaged
Target Release: EAP 6.3.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
This release of JBoss EAP 6 contains a bug that causes some changes to remain in the level 2 cache, following rollback of changes. This issue may result in a `javax.persistence.EntityNotFoundException` or non-existent entities being encountered. This issue is expected to be resolved in a future release of the product.
Story Points: ---
Clone Of: 1102968
: 1102975 (view as bug list) Environment:
Last Closed: 2014-10-13 18:37:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1102968    
Bug Blocks: 1102082, 1102975, 1121630    

Description Stephen Fikes 2014-05-30 00:24:56 UTC
+++ This bug was initially created as a clone of Bug #1102968 +++

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 3 Martin Simka 2014-09-01 16:22:44 UTC
verified on EAP 6.3.1.CP.CR1