Uploaded image for project: 'Spring Data MongoDB'
  1. Spring Data MongoDB
  2. DATAMONGO-622

An unversioned object should be created using insert(…) instead of save.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2 GA
    • Fix Version/s: 1.2.1, 1.3 M1
    • Component/s: Core
    • Labels:
      None

      Description

      MongoTemplate.doSaveVersioned(…) uses doSave(…) to store an unversioned object. It should rather use doInsert(…) to avoid race conditions on concurrent inserts.

        Attachments

          Activity

            People

            • Assignee:
              olivergierke Oliver Gierke
              Reporter:
              olivergierke Oliver Gierke
              Last updater:
              Ayush Soni
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: