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

Project data reload tasks might stay stuck in pending state when there is no root component anymore

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 8.5.1
    • Fix Version/s: 8.6
    • Component/s: None
    • Labels:
    • Edition:
      Community
    • Production Notes:
      None

      Description

      When SonarQube restarts in disaster recovery mode, It triggers an asynchronous elasticsearch re-indexation. We rely on the project_branches table to find items to index. On a corrupted dataset, we may find a project_branches with a main_component_uuid that does not correspond to an existing component. In that case, the CE task stays in the pending state forever, preventing users to use global issues page as well as the page of the project which is concerned.

      The process should:

      • Not ignore tasks that are bound to an orphan branch
      • Purge orphan branch during the processing, as a pre-computational step (Indexation step skip non-existing branch)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              pierre.guillot Pierre Guillot
              Reporter:
              pierre.guillot Pierre Guillot
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: