]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-9996 Finalize installation both at startup and stopping of the server
authorDuarte Meneses <duarte.meneses@sonarsource.com>
Tue, 31 Oct 2017 14:34:49 +0000 (15:34 +0100)
committerDuarte Meneses <duarte.meneses@sonarsource.com>
Wed, 1 Nov 2017 08:46:27 +0000 (09:46 +0100)
server/sonar-server/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevel4.java
server/sonar-server/src/main/java/org/sonar/server/platform/platformlevel/PlatformLevelStartup.java

index e7befa67c580c539f2560004c869c5a795a9d0ba..ccb703b4414fb2f9321cf0d27db9ce05e85d471a 100644 (file)
@@ -54,6 +54,7 @@ import org.sonar.server.duplication.ws.DuplicationsParser;
 import org.sonar.server.duplication.ws.DuplicationsWs;
 import org.sonar.server.duplication.ws.ShowResponseBuilder;
 import org.sonar.server.edition.EditionsWsModule;
+import org.sonar.server.edition.FinalizeEditionChange;
 import org.sonar.server.email.ws.EmailsWsModule;
 import org.sonar.server.es.IndexCreator;
 import org.sonar.server.es.IndexDefinitions;
@@ -566,6 +567,9 @@ public class PlatformLevel4 extends PlatformLevel {
     add(TelemetryDataLoader.class);
     addIfStartupLeader(TelemetryDaemon.class, TelemetryClient.class);
 
+    // edition
+    addIfStartupLeader(FinalizeEditionChange.class);
+    
     // system info
     addIfCluster(WebSystemInfoModule.forClusterMode()).otherwiseAdd(WebSystemInfoModule.forStandaloneMode());
 
index 9a92243526e60e5c23016010d3e073b51a841fd1..f8c07e82b44a8966c69684599002acc1ce0dac33 100644 (file)
@@ -20,7 +20,6 @@
 package org.sonar.server.platform.platformlevel;
 
 import org.sonar.server.app.ProcessCommandWrapper;
-import org.sonar.server.edition.FinalizeEditionChange;
 import org.sonar.server.es.IndexerStartupTask;
 import org.sonar.server.organization.DefaultOrganizationEnforcer;
 import org.sonar.server.platform.ServerLifecycleNotifier;
@@ -59,8 +58,7 @@ public class PlatformLevelStartup extends PlatformLevel {
       IndexerStartupTask.class,
       RegisterMetrics.class,
       RegisterQualityGates.class,
-      RegisterRules.class,
-      FinalizeEditionChange.class);
+      RegisterRules.class);
     add(BuiltInQProfileLoader.class);
     addIfStartupLeader(
       BuiltInQualityProfilesUpdateListener.class,