]> source.dussan.org Git - sonarqube.git/commitdiff
Fix purge issue because events persistence was done after switch of snapshot
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Tue, 17 Mar 2015 14:10:39 +0000 (15:10 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Tue, 17 Mar 2015 14:10:39 +0000 (15:10 +0100)
server/sonar-server/src/main/java/org/sonar/server/computation/step/ComputationSteps.java

index 4ad3a7b5fb3611a4ef48403ff25f0e29a1e57431..81cdeea9eda6adcf444f6778f7c8fe13cd7fb470 100644 (file)
@@ -37,13 +37,18 @@ public class ComputationSteps {
    */
   public static List<Class<? extends ComputationStep>> orderedStepClasses() {
     return Arrays.asList(
+      // Read report
       ParseReportStep.class,
+
+      // Persist data
       PersistIssuesStep.class,
+      PersistComponentLinksStep.class,
+      PersistEventsStep.class,
+
+      // Switch snapshot and purge
       SwitchSnapshotStep.class,
       IndexComponentsStep.class,
       PurgeDatastoresStep.class,
-      PersistComponentLinksStep.class,
-      PersistEventsStep.class,
 
       // ES indexing is done after all db changes
       ApplyPermissionsStep.class,