Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-15225

Cancelled Project Reload tasks are leading to inappropriate state of issue indexing

    XMLWordPrintable

    Details

    • Edition:
      Community
    • Production Notes:
      None

      Description

      During async issue indexation if SonarQube instance has been stopped and it leads to marking Project Reload task as cancelled, web API "api/ce/indexation_status" returns inappropriate status, for example:

      {
      "isCompleted": true,
      "percentCompleted": 94,
      "hasFailures": false
      }
      

      This leads to problems in UI for failed/cancelled indexation for projects.

      Solution:

      Short term solution is to treat cancelled tasks as failed in indexation process, so that warning banner will appear and re-indexation will be required.

      See: CeActivityMapper.xml # hasAnyFailedIssueSyncTaskSql

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jacek.poreda Jacek Poreda
              Reporter:
              jacek.poreda Jacek Poreda
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: