The method ObjectStore.registerNode(..) is not synchronized, while getNode(..) is. The objectMap can be accessed in a thread-unsafe way when a new object instance is created and when at the same time snapshotevents are processed.
When creating the instance, the unsafe registerNode method is used. It will start looping in the objectMap when at the same time when an EventDispatch thread tries to acces the objectMap through getNode(). The dispatch threads will go in a WAIT state which eventually results in a completely frozen application.
I noticed that in cayenne 3 the registerNode() method is synchronized. Can such a fix also be applied to a cayenne 2.0.5 release?
|Field||Original Value||New Value|
|Status||Open [ 1 ]||Closed [ 6 ]|
|Fix Version/s||2.0.5 [ 12313753 ]|
|Resolution||Fixed [ 1 ]|
|Transition||Time In Source Status||Execution Times||Last Executer||Last Execution Date|
|42d 11h 17m||1||Andrus Adamchik||11/Nov/10 02:42|