DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
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.




Sort Order: Ascending order - Click to sort in descending order
Peter Dettman added a comment - 22/May/10 07:55 AM
Fix applied

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 ;-)