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

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: 7.4.6, 7.5.0-alpha5
    • Fix Version/s: 7.6.0, 7.6.0-alpha4
    • Component/s: engine
    • Labels:

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: