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

Database batch processing swallows Optimistic Locking Exception

    XMLWordPrintable

Details

    Description

      Preconditions

      • Database batch processing is enabled
      • The execution of a job failed so it has a reference to a byte array containing the stacktrace

      Steps to reproduce

      1. In TX1 the job is changed
      2. In TX2 the job should be deleted
        • To avoid foreign key constraint violations, the job record itself is deleted first and afterwards the byte array belonging to the job is deleted
      3. TX1 and TX2 are flushed
      4. Since the job record was changed in TX1 first, an OptimisticLockingException occurs in the first batch of TX2

      Observed behavior

      • The OptimisticLockingException thrown when trying to delete the job is swallowed
      • The byte array cannot be deleted since the job record is still present
      • This leads to a foreign key constraint violation

      Expected behavior
      The OptimisticLockingException is thrown.

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                tassilo.weidner Tassilo Weidner
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce