Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-31244

Fix race condition when reading Work state from KV store

    XMLWordPrintable

    Details

    • Release Notes Summary:
      Race condition is avoided when reading Work state from KV store.
    • Backlog priority:
      900
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #69, nxplatform #76
    • Story Points:
      3

      Description

      What is happening here is a race condition.
      The Work is appended to the stream at t0.
      Its state is then put in the KV store at t1.

      The consumer read the record from Kafka and request the KV store for its state between t0 and t1 resulting in an unknown state which mean Work canceled explaining the following WARN:

      WARN [WorkComputation] work has been canceled, saving and returning 
      

      To avoid this we could retry to get the state from the KV store after a short delay.

      This fix was already committed to LTS 2021 in ticket NXP-28728. Requesting a backport to 10.10

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: