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

Asynchronous Task/Job is failing from time to time

    XMLWordPrintable

Details

    • False
    • None
    • False
    • ---
    • ---
    • 2022 Week 38-40 (from Sept 19)

    Description

      The following ProcessAsynIT has been failing in a random manner from time to time.
       
      Here we have a new report from cnicolai@redhat.com and some clues that he has found:
       
       
      -----------------------------------
      https://gist.github.com/cristianonicolai/796609ac0bb96717e3774ee1a99f537e
       
      could the reason be that the job trigger time that is getting registered is already in the past?
       
      expirationTime=2022-06-16T17:41:43.494420Z[UTC]
       
      and log is at 2022-06-16 17:41:43,501
       
      this is the failed run https://github.com/kiegroup/kogito-apps/runs/6921698021
       
      -----------------------------------
       
      I believe that this aligned with the implementation of the AsyncTask itself and the fact that current implementation programs a Job that will be fired exactly 1 millisecond after the AsyncTask creation.
       
      I think tdolphin-1 that this is aligned with the conversation we had last week, and maybe also related with the fact that the Job is somehow created with a lower priority in the unit of work that is being processed when the AsyncTask is being created.
      If I'm not wrong, we could be in a scenario like this.
       
      UnitOfWork Starts
       
         1) the task is stored in DB 
         2) in a lower priority the Job is created, and here is really the JOB id created and updated on the task information
       
      UnitOfWork Finish  (here is the DB commit produced or was already produced, not sure exacly how it happens)
       
       
      But, independently of the "commit", If I'm not wrong, 1) was executed before 2) and thus I don't discard an issue there.
       

      Attachments

        Issue Links

          Activity

            People

              tdolphin-1 Tiago Dolphine
              wmedvede@redhat.com Walter Medvedeo
              Marian Macik Marian Macik
              Marian Macik Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: