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.

Sort Order: Ascending order - Click to sort in descending order
Peter Dettman added a comment - 21/May/10 06:42 AM
StoreDataManager changed to ensure ConcurrentHashMap always used.