Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using engine configuration isDbEntityCacheReuseEnabled shows non-transactional behavior #2118

Open
ThorbenLindhauer opened this issue Aug 10, 2015 · 0 comments
Labels
scope:core-api Changes to the core API: engine, dmn-engine, feel-engine, REST API, OpenAPI type:bug Issues that describe a user-facing bug in the project.

Comments

@ThorbenLindhauer
Copy link
Member

ThorbenLindhauer commented Aug 10, 2015

This issue was imported from JIRA:

Field Value
JIRA Link CAM-4385
Reporter @ThorbenLindhauer
Has restricted visibility comments true

The configuration option "isDbEntityCacheReuseEnabled" makes the engine share an entity cache between multiple transactions of job execution. However, it also shares it with the transaction that handles the failure of job execution, where the current cache state is not valid anymore, because a previous transaction has been rolled back.

Example:

  • see attached diagram
  • Task A is async
  • Task C fails on execution

When the job is executed the first time, the executing transaction fails (due to Task C), however the transaction handling the failed job flushes all the changes made by the previous transaction since it shares the entity cache. This results in:

  • Unwanted history entries (here: activity instances for Task A, B, and C although the transaction was rolled back)
  • Inconsistent execution state (here: the execution is set to Task C by the failed job handling transaction, thus B is skipped when the job is executed the next time; for the same reason, the failed job command is not able to read the configuration for Task A)

By default, the option isDbEntityCacheReuseEnabled is set to false (which is also the workaround for this problem).

related forum post:

https://groups.google.com/forum/?utm*medium=email&utm_source=footer#!msg/camunda-bpm-users/RNS1o7Koi*E/gtklpds7q5wJ

Links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope:core-api Changes to the core API: engine, dmn-engine, feel-engine, REST API, OpenAPI type:bug Issues that describe a user-facing bug in the project.
Projects
None yet
Development

No branches or pull requests

1 participant