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

Lack of synchronization in DataContext serialization

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.B2, 4.1.M1
    • 4.0.RC1, 4.1.M2
    • Core Library
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: