Issue Details (XML | Word | Printable)

Key: NUCCORE-530
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Peter Dettman
Reporter: Peter Dettman
Votes: 0
Watchers: 0
Operations

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

After NotYetFlushedException, dirtyFields not restored correctly

Created: 22/May/10 07:37 AM   Updated: 04/Oct/12 05:02 PM   Resolved: 22/May/10 07:55 AM
Component/s: Persistence
Affects Version/s: 2.1.0.m3
Fix Version/s: 2.1.0.release

Forum Thread URL: http://www.datanucleus.org/servlet/forum/viewthread_thread,6143


 Description  « Hide
In JDOStateManagerImpl.internalMakePersistent, tmpDirtyFields fails to take a deep copy of dirtyFields, and so dirtyFields are not properly restored in event of a NotYetFlushedException.

Possibly related to the forum post linked, since this could leave dirty=true with no dirty fields marked.




Peter Dettman added a comment - 22/May/10 07:55 AM
Fix applied

Peter Dettman made changes - 22/May/10 07:55 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 2.1.0.release [ 10836 ]
Resolution Fixed [ 1 ]
Peter Dettman made changes - 22/May/10 07:59 AM
Affects Version/s 2.1.0.m3 [ 10942 ]
Andy Jefferson made changes - 11/Jun/10 01:38 PM
Status Resolved [ 5 ] Closed [ 6 ]
Chris Colman added a comment - 25/Aug/11 08:45 AM
Was this fix appropriate to 3.x? Has it been ported to 3.x because I'm seeing this bug now in 3.

Andy Jefferson added a comment - 25/Aug/11 09:04 AM
Chris, This "fix" was applied in v2.1 so by definition it is in every release from that date. If you have a problem you know what the solution is ;-)

Andy Jefferson made changes - 04/Oct/12 05:02 PM
Component/s JDO [ 10201 ]