Issue Details (XML | Word | Printable)

Key: NUCCORE-257
Type: Task Task
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DataNucleus Core

CopyOnAttach=false for collections likely doesn't handle element removal - check it

Created: 16/Apr/09 04:38 PM   Updated: 04/Oct/12 05:02 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None


 Description  « Hide
The handling for CopyOnAttach=false is likely problematic and needs more testing. Code in AttachFieldManager only seems to handle added elements in collections. If an element is deleted there seems to be no check with current datastore contents, and any subsequent datastore removal. Needs more unit tests

Sort Order: Ascending order - Click to sort in descending order
Chris Colman added a comment - 21/Feb/11 05:32 AM
I have this exact situation at the moment and if I delete an element from the collection I get an OptimisticVerificationException when I commit.

Andy Jefferson added a comment - 28/Mar/11 04:09 PM
ahh well, you can easily contribute that unit test that the issue asks for:-) look at test.jdo.general AttachDetachTest and make use of existing samples