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-527
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Peter Dettman
Reporter: Peter Dettman
Votes: 0
Watchers: 0

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

After rollback, StoreDataManager no longer thread-safe

Created: 21/May/10 05:37 AM   Updated: 11/Jun/10 01:38 PM   Resolved: 21/May/10 06:42 AM
Component/s: Datastore Support
Affects Version/s: 2.1.0.m3
Fix Version/s: 2.1.0.release

 Description  « Hide
The StoreDataManager.storeDataByClass field is a ConcurrentHashMap, however during a transaction the backup that is taken of this field (savedStoreDataByClass) is a HashMap. In case of a rollback, storeDataByClass will then be assigned to that HashMap, and future operations may no longer be thread-safe.

Peter Dettman added a comment - 21/May/10 06:42 AM
StoreDataManager changed to ensure ConcurrentHashMap always used.

Peter Dettman made changes - 21/May/10 06:42 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 2.1.0.release [ 10836 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 11/Jun/10 01:38 PM
Status Resolved [ 5 ] Closed [ 6 ]