Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-2382

Lack of synchronization in DataContext serialization

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.B2, 4.1.M1
    • Fix Version/s: 4.0.RC1, 4.1.M2
    • Component/s: Core Library
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              ntimofeev Nikita Timofeev
              Reporter:
              ntimofeev Nikita Timofeev
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: