Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-2614

First rollback after application start does not work under certain circumstances

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.4.0
    • Fix Version/s: None
    • Component/s: jpa
    • Labels:
      None

      Description

      Rollback is not complete under the following circumstances:

      1. Entites must use a sequence generator with GenerationType.SEQUENCE
      2. It is the first rollback after application start
      3. You have to flush successfully during the creation of entities
      4. The transaction is rolled back during commit because of a constraint violation

      Expected result: Nothing remains in the database that is created during the transaction

      Actual result: Entites created before the flush are persisted (i.e. not rolled back)

      An example project is attached. It shows the described problem when executing the test.

        Attachments

        1. jpa-test.zip
          14 kB
          Tim Gödde

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tim.goedde Tim Gödde
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: