Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-dev] bug 336731 <shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>

Hi Gordon, other,
 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=336731
 
I have started an investigation to get the WDF test running with <shared-cache-mode>ENABLE_SELECTIVE</shared-cache-mode>.
 
I will track progress here:
 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=336726
 
The bug 336731 proposes some minor fixes and adjustments to the tests but also revealed an interesting observation:
 
In an entity hierarchy, some subclass with a particular id had been cached and is removed and evicted from the cache later. It should be completely gone now. However, it seems that upon eviction, the EclipseLink cache does not truly remove the subclass but just invalidates it and keeps a zombie object with the particular subclass. If I now create a different subclass with the particular id, it cannot enter the cache as the cache expects it to have the attributes of the former subclass.
 
I don’t think this is an issue in real life as objects don’t just change their subclass. But that the subclass information survives the removal of an object is kind of strange.
 
In 336731, I am proposing a change that adjust the tests so that this issue does not occur. But if you think it is worth investigating I can keep the tests as is to have a repro.
 
What do you think?
 
-Adrian
 
Adrian Görler
SAP AG

Pflichtangaben/Mandatory Disclosure Statements:
http://www.sap.com/company/legal/impressum.epx
 
 
 

Back to the top