Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-10002

Using the Spring integration, the data of a nested transaction is flushed even if the transaction is rolled back

    Details

      Description

      Context

      The process engine uses the Spring integration with a JTA transaction manager.

      Within a transaction T1, a new transaction T2 is opened via Propagation.REQUIRES_NEW.
      A new process instance with an async. start event is created. After the job is created, an exception is thrown and T2 is rolled back. The exception is caught within T2 and T2 is committed successfully.

      Problem

      The process instance is created although the transaction T2 was rolled back. Since the process instance is created within the transaction T2, it should be rolled back with the transaction.

      AT

      The process instance is not created if the transaction is rolled back.

      Hints

      It seems that a new transaction T2 is created and rolled back at the end. But the engine reuses the command context of T1 within T2 to create the process instance. So, the create command is flushed in T1 and not in T2. Because of this, the rollback of T2 has no effect on the command.

        Activity

        philipp.ossler Philipp Ossler created issue -
        philipp.ossler Philipp Ossler made changes -
        Field Original Value New Value
        Link This issue is depended on by SUPPORT-5564 [ SUPPORT-5564 ]
        yana.vasileva Yana Vasileva made changes -
        Status Open [ 1 ] Ready [ 10005 ]
        thorben.lindhauer Thorben Lindhauer made changes -
        Remote Link This issue links to "Page (camunda confluence)" [ 12908 ]
        thorben.lindhauer Thorben Lindhauer made changes -
        Fix Version/s 7.11.x [ 15373 ]
        thorben.lindhauer Thorben Lindhauer made changes -
        Fix Version/s 7.12.0 [ 15387 ]
        thorben.lindhauer Thorben Lindhauer made changes -
        Assignee Nikola Koevski [ nikola.koevski ]
        nikola.koevski Nikola Koevski made changes -
        Status Ready [ 10005 ] In Progress [ 3 ]
        nikola.koevski Nikola Koevski made changes -
        Rank Ranked higher
        nikola.koevski Nikola Koevski made changes -
        Status In Progress [ 3 ] Ready [ 10005 ]
        nikola.koevski Nikola Koevski made changes -
        Status Ready [ 10005 ] In Progress [ 3 ]
        nikola.koevski Nikola Koevski made changes -
        Status In Progress [ 3 ] Ready [ 10005 ]
        nikola.koevski Nikola Koevski made changes -
        Status Ready [ 10005 ] In Progress [ 3 ]
        nikola.koevski Nikola Koevski made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Original Estimate 0 minutes [ 0 ]
        Remaining Estimate 0 minutes [ 0 ]
        Assignee Nikola Koevski [ nikola.koevski ] Thorben Lindhauer [ thorben.lindhauer ]
        Resolution Fixed [ 1 ]
        thorben.lindhauer Thorben Lindhauer made changes -
        Status Resolved [ 5 ] In Progress [ 3 ]
        thorben.lindhauer Thorben Lindhauer made changes -
        Resolution Fixed [ 1 ]
        Status In Progress [ 3 ] Ready [ 10005 ]
        thorben.lindhauer Thorben Lindhauer made changes -
        Assignee Thorben Lindhauer [ thorben.lindhauer ] Nikola Koevski [ nikola.koevski ]
        nikola.koevski Nikola Koevski made changes -
        Status Ready [ 10005 ] In Progress [ 3 ]
        nikola.koevski Nikola Koevski made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Assignee Nikola Koevski [ nikola.koevski ] Thorben Lindhauer [ thorben.lindhauer ]
        Resolution Fixed [ 1 ]
        thorben.lindhauer Thorben Lindhauer made changes -
        Fix Version/s 7.11.2 [ 15495 ]
        thorben.lindhauer Thorben Lindhauer made changes -
        Fix Version/s 7.11.x [ 15373 ]
        thorben.lindhauer Thorben Lindhauer made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Assignee Thorben Lindhauer [ thorben.lindhauer ] Nikola Koevski [ nikola.koevski ]
        nikola.koevski Nikola Koevski made changes -
        Status Reopened [ 4 ] In Progress [ 3 ]
        nikola.koevski Nikola Koevski made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Assignee Nikola Koevski [ nikola.koevski ] Thorben Lindhauer [ thorben.lindhauer ]
        Resolution Fixed [ 1 ]
        thorben.lindhauer Thorben Lindhauer made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        martin.stamm Martin Stamm made changes -
        Fix Version/s 7.12.0-alpha2 [ 15508 ]
        thorben.lindhauer Thorben Lindhauer made changes -
        Remote Link This issue links to "Page (camunda confluence)" [ 12908 ]

          People

          • Assignee:
            thorben.lindhauer Thorben Lindhauer
            Reporter:
            philipp.ossler Philipp Ossler
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development