You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Nikita Timofeev (JIRA)" <ji...@apache.org> on 2017/11/30 09:48:00 UTC

[jira] [Closed] (CAY-2382) Lack of synchronization in DataContext serialization

     [ https://issues.apache.org/jira/browse/CAY-2382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nikita Timofeev closed CAY-2382.
--------------------------------
    Resolution: Fixed

*4.1* https://github.com/apache/cayenne/commit/9382e47338c65d0208f731a153d571c7a2789faf
*4.0* https://github.com/apache/cayenne/commit/812375276ed03be36cf94bf267c15695157fc65c

> Lack of synchronization in DataContext serialization
> ----------------------------------------------------
>
>                 Key: CAY-2382
>                 URL: https://issues.apache.org/jira/browse/CAY-2382
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Core Library
>    Affects Versions: 4.0.B2, 4.1.M1
>            Reporter: Nikita Timofeev
>            Assignee: Nikita Timofeev
>             Fix For: 4.0.B3, 4.1.M2
>
>
> {{DataContext}} is designed to be thread safe, however there is no synchronization in serialization.
> This problem shows itself in *4.1.M1* version as {{ConcurrentModificationException}} when trying to serialize Context while other threads add or delete objects in it. 
> In *4.1.M1* underlying data structure was changed, thus revealing this problem. But it also affects earlier versions of Cayenne.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)