]> source.dussan.org Git - sonarqube.git/commitdiff
Fix documentation of sonar.cluster.activate
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 24 Oct 2014 16:26:29 +0000 (18:26 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Fri, 24 Oct 2014 16:26:29 +0000 (18:26 +0200)
server/sonar-search/src/main/java/org/sonar/search/SearchServer.java
server/sonar-search/src/test/java/org/sonar/search/SearchServerTest.java

index d8d692b6c1c9e44aba94c71cee34de2c81557a94..a860082c54ae49845a18fc2d70615051dabfa2fd 100644 (file)
@@ -28,6 +28,7 @@ import org.slf4j.LoggerFactory;
 import org.sonar.process.MessageException;
 import org.sonar.process.MinimumViableSystem;
 import org.sonar.process.Monitored;
+import org.sonar.process.ProcessConstants;
 import org.sonar.process.ProcessEntryPoint;
 import org.sonar.process.ProcessLogging;
 import org.sonar.process.Props;
@@ -58,7 +59,8 @@ public class SearchServer implements Monitored {
         String clusterReplicationFactor = settings.get("index.number_of_replicas", "-1");
         if (Integer.parseInt(clusterReplicationFactor) <= 0) {
           node.stop();
-          throw new MessageException("Index configuration is not set to cluster. Please start the master node with 'sonar.cluster.activation=true'");
+          throw new MessageException("Index configuration is not set to cluster. Please start the master node with " +
+            "property " + ProcessConstants.CLUSTER_ACTIVATE + "=true");
         }
       }
     }
index 042bcf97805c4a1e7d625792a52a61f0deddd9dd..591a8289441d28db083471d945ef66ff6a6a7cd3 100644 (file)
@@ -163,7 +163,7 @@ public class SearchServerTest {
       slaveServer.start();
       fail();
     } catch (Exception e) {
-      assertThat(e).hasMessage("Index configuration is not set to cluster. Please start the master node with 'sonar.cluster.activation=true'");
+      assertThat(e).hasMessage("Index configuration is not set to cluster. Please start the master node with property " + ProcessConstants.CLUSTER_ACTIVATE + "=true");
     }
 
     assertThat(client.admin().cluster().prepareClusterStats().get()