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

Restoring execution tree can fail with a NullPointerException on parallel deletion

    XMLWordPrintable

Details

    Description

      ExecutionEntity#restoreProcessInstance is not safe when parts of the execution tree are removed in parallel. For example, consider https://github.com/camunda/camunda-bpm-platform/blob/7.4.0/engine/src/main/java/org/camunda/bpm/engine/impl/persistence/entity/ExecutionEntity.java#L1129-L1140. The parentId may be not null but the parent may already be deleted when it is fetched, resulting in a NullPointerException.

      Checkthe entire method for more possible occurrences of this problem and fix them.

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              thorben.lindhauer Thorben Lindhauer
              thorben.lindhauer Thorben Lindhauer
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce