]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6590 fix QueueItem status not saved after processing
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Tue, 2 Jun 2015 07:46:59 +0000 (09:46 +0200)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Tue, 2 Jun 2015 07:50:19 +0000 (09:50 +0200)
because the container was not started, when cleanup method was invoked an IllegalStateException was raised by Pico because the current status of the container was CONSTRUCTED
unfortunately, the method to update the item status is after the call to the cleanup method and therefor was never invoked

server/sonar-server/src/main/java/org/sonar/server/computation/container/ComputeEngineContainerImpl.java

index ff9de6a5da4a7e8075d4c466b5bd71e75b0f1276..e4a80f6e60bf1303add8d62fac901958aea72ca9 100644 (file)
@@ -67,6 +67,7 @@ public class ComputeEngineContainerImpl extends ComponentContainer implements Co
     this.steps = new ComputationSteps(this);
 
     populateContainer(requireNonNull(item));
+    startComponents();
   }
 
   @Override