Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-7837

WorkItemNotFoundException (race сondition)

XMLWordPrintable

    • False
    • None
    • False
    • ---
    • ---
    • 2022 Week 38-40 (from Sept 19), 2022 Week 41-43 (from Oct 10)

      Runtime: quarkus

      Persistance: postgresql

      Prop: kogito.persistence.optimistic.lock=true

      Process (each parallel task is executing async by jobs service):

       

      We use a simple load test where 500 processes are run in a loop:

      Concurrency Thread Group parallel async.jmx

      If the stub has no delay time and the response is sent immediately, a WorkItemNotFoundException is thrown. (this application runs in pod 2CPU /2 Gb RAM and the error occurs approximately 15 minutes after the start of the load test).
      The error stops appearing after a delay on the plug of about 0.5 seconds

        1. Concurrency Thread Group parallel async.jmx
          21 kB
          Aleksandr Samarkin
        2. image-2022-08-23-08-02-39-549.png
          114 kB
          Aleksandr Samarkin

              martinweiler Martin Weiler (Inactive)
              shuriksamara Aleksandr Samarkin (Inactive)
              Marian Macik Marian Macik
              Marian Macik Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: