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

When deleting a process definition, message event subscription is not removed

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Unresolved
    • L3 - Default
    • None
    • 7.10.20, 7.14.0, 7.13.1, 7.12.7, 7.11.14
    • None
    • None

    Description

      Given

      • Thread t1 deletes process definition x in version 1 (x1)
      • Thread t2 deletes process definition x in version 2 (x2)
      • Thread t1 already executed the command so that the thread is about to flush and commit the DB changes

      Scenario

      1. t2 determines new latest process definition -> x1 is considered to be the new latest process definition
      2. t2 deletes x2
      3. t2 starts to ensure consistency with respect to the new latest process definition of x1
      4. t2 resolve the x1 from the cache
      5. t2 makes sure that existing event subscriptions get persisted eventually
      6. t1 flushes and commits -> The process definition got deleted from the database and got removed from the cache
      7. t2 flushes and commits -> The process definition got deleted from the database and got removed from the cache

      Observed behavior

      • The process definition x1 got deleted
      • The process definition x2 got deleted
      • But there exists an event subscription in the table ACT_RU_EVENT_SUBSCR pointing to x1
      • When somebody now tries to deploy a process with the same message name, then that deployment will fail

      Expected behavior
      t2 fails with an Optimistic Locking Exception

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

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

              Dates

                Created:
                Updated:

                Salesforce