Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-8989 tasks wrongly in "in progress" state should be reset to "pending" state
  3. SONAR-8985

CE workers must have a unique identifier and persist it to tasks they process

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.4
    • Component/s: Compute Engine, Database
    • Labels:

      Description

      A worker must be uniquely identified.

      A task in status "in progress" must reference the id of related worker through the new column worker_uuid (VARCHAR(40)) to tables CE_QUEUE and CE_ACTIVITY.

      in CE_QUEUE:

      • a newly created task (ie. with status "PENDING") has no worker UUID
      • a task "IN PROGRESS" always has a worker UUID
      • a task "PENDING" may have a UUID if it has already been executed at least once

      in CE_ACTIVITY:

      • tasks created in this table prior to this ticket do not have a worker uuid
      • a "CANCELED" task may or may not have a worker uuid (depending on whether it has been executed at least once or not)
      • tasks with status "FAILED" and "SUCCESS" have a worker uuid

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sebastien.lesaint Sebastien Lesaint
              Reporter:
              eric.hartmann Eric Hartmann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: