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

Any non-Exception Throwable thrown during process execution can lead to inconsistent database state

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: 7.8.0-alpha1
    • Fix Version/s: 7.8.0, 7.7.1, 7.6.7, 7.8.0-alpha2
    • Component/s: engine
    • Labels:
      None

      Description

      If an instance of a Throwable that is not an Exception is thrown (e.g. StackOverflowError during deletion of a huge process instance - deleteCascade is recursive), then when the command context is closed

      • the engine will not properly catch this error, cf. [1]
      • the engine will close the command context, cf. [2]
      • the engine will flush all sessions, including the db entity manager, cf. [3]
      • the db entity manager will make SQL statements
      • the transaction will be committed, not rolled back

      As a result, the database is in an inconsistent state.

      [1] https://github.com/camunda/camunda-bpm-platform/blob/7.7.0/engine/src/main/java/org/camunda/bpm/engine/impl/interceptor/CommandContextInterceptor.java#L107
      [2] https://github.com/camunda/camunda-bpm-platform/blob/7.7.0/engine/src/main/java/org/camunda/bpm/engine/impl/interceptor/CommandContextInterceptor.java#L113
      [3] https://github.com/camunda/camunda-bpm-platform/blob/7.7.0/engine/src/main/java/org/camunda/bpm/engine/impl/interceptor/CommandContext.java#L132

        Issue Links

          Activity

          thorben.lindhauer Thorben Lindhauer created issue -
          roman.smirnov Smirnov Roman made changes -
          Field Original Value New Value
          Assignee Yana Vasileva [ yana.vasileva ]
          roman.smirnov Smirnov Roman made changes -
          Fix Version/s 7.7.x [ 14699 ]
          Fix Version/s 7.8.0 [ 14894 ]
          roman.smirnov Smirnov Roman made changes -
          Assignee Yana Vasileva [ yana.vasileva ] Thomas Allan [ thomas.allan ]
          tassilo.weidner Tassilo Weidner made changes -
          Affects Version/s 7.8.0-alpha1 [ 14905 ]
          thomas.allan Thomas Allan made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Original Estimate 0 minutes [ 0 ]
          Remaining Estimate 0 minutes [ 0 ]
          Assignee Thomas Allan [ thomas.allan ] Thorben Lindhauer [ thorben.lindhauer ]
          Resolution Fixed [ 1 ]
          svetlana.dorokhova Svetlana Dorokhova made changes -
          Fix Version/s 7.6.x [ 14597 ]
          svetlana.dorokhova Svetlana Dorokhova made changes -
          Link This issue is depended on by CAM-8005 [ CAM-8005 ]
          svetlana.dorokhova Svetlana Dorokhova made changes -
          Assignee Thorben Lindhauer [ thorben.lindhauer ] Svetlana Dorokhova [ svetlana.dorokhova ]
          roman.smirnov Smirnov Roman made changes -
          Fix Version/s 7.7.1 [ 14896 ]
          Fix Version/s 7.6.7 [ 14899 ]
          Fix Version/s 7.6.x [ 14597 ]
          Fix Version/s 7.7.x [ 14699 ]
          svetlana.dorokhova Svetlana Dorokhova made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          svetlana.dorokhova Svetlana Dorokhova made changes -
          Fix Version/s 7.8.0-alpha2 [ 14906 ]

            People

            • Assignee:
              svetlana.dorokhova Svetlana Dorokhova
              Reporter:
              thorben.lindhauer Thorben Lindhauer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development