StatefulPersistenceContext.RemoveEntity KeyNotFoundException on Evict

Description

In rev 3.2.0 and 3.3.3 i am still getting this Exception (as already reported in closed NH-1845, because test could not reproduce it):

So please add this path to next release as suggested long time ago in https://forum.hibernate.org/viewtopic.php?f=25&t=993443&view=previous

Unfortunately i can't give you test because it is beeing thrown in our project with a little bit complicated Object structure (BO) and it occurs only from time to time.

Anyway, this patch is WORTH TO BE ADDED.
Thank you

Environment

None

Activity

Alex Zaytsev 
May 20, 2020 at 10:26 PM

Moved here.

The initial test was committed with some modification which prevented bug to be exposed.

Jenar 
June 10, 2013 at 12:38 PM

I think this exception could happend if mapping for Object_A will somehow contain a collection ie. <BAG> with the same Object_A. And you will try to Evict Object_A

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created June 7, 2013 at 6:59 AM
Updated May 20, 2020 at 10:26 PM
Resolved May 20, 2020 at 10:26 PM
Who's Looking?