Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-3819

Avoid race condition when resetting running instance import index

    XMLWordPrintable

Details

    • Not defined

    Description

      Context:

      With OPT-3505, Optimize now re-imports running process instances if specific suspension operations have occured. In some cases this is done by re-importing specific instances, but in the case of batch suspension operations all instances have to be re-imported, which is currently achieved by resetting the import index. However, this could lead to a potential race condition as described in the comment here: https://github.com/camunda/camunda-optimize/pull/2074#discussion_r435817458.

      To avoid this race condition, we need a way to clear the queue of the running instance import before resetting the index timestamps.

       

      AT:

      • The above described race condition is avoided by resetting any potential current import jobs before resetting the import index

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                helene.waechtler Helene Waechtler
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:

                  Salesforce