aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2015-03-17 15:10:39 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2015-03-17 15:10:39 +0100
commit12f6213141fbd03c9de2d2d377394299f39873bb (patch)
tree509a0ec10841c48812e1e19fbee715ee23e7171b
parent194cac3982b108e718b204f2a3645ea7b1794205 (diff)
downloadsonarqube-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.java9
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,