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

Backend cleanup must clean CE tables

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.4
    • Component/s: None
    • Labels:

      Description

      orchestrator provides a reset WS with a plugin which calls the BackendCleaner class provided by SonarQube. This class does not clean the table of the Compute Engine.

      This can cause errors in ITs such as:

      09:31:26 09:31:26.349 INFO  Reset data
      09:31:26 09:31:26.431 INFO  Executing command: unzip -o -q /home/ssjenkq1/cix/workspace/sonar-scm-svn-qa/5257bf3b/its/scm-repo/1.8/repo-svn.zip
      09:31:27 2016.11.14 09:31:26 INFO  ce[AVhh9l80JLgQm-26Mou7][o.s.s.c.t.CeWorkerCallableImpl] Execute task | type=REPORT | id=AVhh9l80JLgQm-26Mou7
      09:31:27 2016.11.14 09:31:27 ERROR ce[AVhh9l80JLgQm-26Mou7][o.s.s.c.t.s.ComputationStepExecutor] Execution of listener failed
      09:31:27 java.lang.NullPointerException: key can not be null
      09:31:27 	at java.util.Objects.requireNonNull(Objects.java:228)
      09:31:27 	at org.sonar.server.computation.task.projectanalysis.api.posttask.ProjectImpl.<init>(ProjectImpl.java:35)
      09:31:27 	at org.sonar.server.computation.task.projectanalysis.api.posttask.PostProjectAnalysisTasksExecutor.createProject(PostProjectAnalysisTasksExecutor.java:127)
      09:31:27 	at org.sonar.server.computation.task.projectanalysis.api.posttask.PostProjectAnalysisTasksExecutor.createProjectAnalysis(PostProjectAnalysisTasksExecutor.java:116)
      09:31:27 	at org.sonar.server.computation.task.projectanalysis.api.posttask.PostProjectAnalysisTasksExecutor.finished(PostProjectAnalysisTasksExecutor.java:98)
      09:31:27 	at org.sonar.server.computation.task.step.ComputationStepExecutor.executeListener(ComputationStepExecutor.java:71)
      09:31:27 	at org.sonar.server.computation.task.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:56)
      09:31:27 	at org.sonar.server.computation.task.projectanalysis.taskprocessor.ReportTaskProcessor.process(ReportTaskProcessor.java:75)
      09:31:27 	at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.executeTask(CeWorkerCallableImpl.java:84)
      09:31:27 	at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.call(CeWorkerCallableImpl.java:57)
      09:31:27 	at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.call(CeWorkerCallableImpl.java:35)
      09:31:27 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      09:31:27 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      09:31:27 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      09:31:27 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
      09:31:27 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
      09:31:27 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      09:31:27 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      09:31:27 	at java.lang.Thread.run(Thread.java:745)
      09:31:27 2016.11.14 09:31:27 ERROR ce[AVhh9l80JLgQm-26Mou7][o.s.s.c.t.CeWorkerCallableImpl] Failed to execute task AVhh9l80JLgQm-26Mou7
      09:31:27 org.sonar.api.utils.MessageException: Compute Engine task component key is null. Project with UUID AVhh9l6KJLgQm-26Mou6 must have been deleted since report was uploaded. Can not proceed.
      

        Attachments

          Activity

            People

            • Assignee:
              simon.brandhof Simon Brandhof
              Reporter:
              sebastien.lesaint Sebastien Lesaint
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: