diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-03-17 15:10:39 +0100 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-03-17 15:10:39 +0100 |
commit | 12f6213141fbd03c9de2d2d377394299f39873bb (patch) | |
tree | 509a0ec10841c48812e1e19fbee715ee23e7171b | |
parent | 194cac3982b108e718b204f2a3645ea7b1794205 (diff) | |
download | sonarqube-12f6213141fbd03c9de2d2d377394299f39873bb.tar.gz sonarqube-12f6213141fbd03c9de2d2d377394299f39873bb.zip |
Fix purge issue because events persistence was done after switch of snapshot
-rw-r--r-- | server/sonar-server/src/main/java/org/sonar/server/computation/step/ComputationSteps.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/computation/step/ComputationSteps.java b/server/sonar-server/src/main/java/org/sonar/server/computation/step/ComputationSteps.java index 4ad3a7b5fb3..81cdeea9eda 100644 --- a/server/sonar-server/src/main/java/org/sonar/server/computation/step/ComputationSteps.java +++ b/server/sonar-server/src/main/java/org/sonar/server/computation/step/ComputationSteps.java @@ -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, |