Restoring execution tree can fail with a NullPointerException on parallel deletion

XMLWordPrintable

      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.

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

              Created:
              Updated:
              Resolved: