diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-10-24 18:26:29 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2014-10-24 18:26:29 +0200 |
commit | 9c467f71a35ebb691acbb77bb1de3d825c4b109d (patch) | |
tree | f67744c22a1b02846de85a5946719649b124b8e2 /server/sonar-search/src/main/java/org/sonar | |
parent | 1e7ea1a781b1236201dbb8e1692a5f797478d651 (diff) | |
download | sonarqube-9c467f71a35ebb691acbb77bb1de3d825c4b109d.tar.gz sonarqube-9c467f71a35ebb691acbb77bb1de3d825c4b109d.zip |
Fix documentation of sonar.cluster.activate
Diffstat (limited to 'server/sonar-search/src/main/java/org/sonar')
-rw-r--r-- | server/sonar-search/src/main/java/org/sonar/search/SearchServer.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-search/src/main/java/org/sonar/search/SearchServer.java b/server/sonar-search/src/main/java/org/sonar/search/SearchServer.java index d8d692b6c1c..a860082c54a 100644 --- a/server/sonar-search/src/main/java/org/sonar/search/SearchServer.java +++ b/server/sonar-search/src/main/java/org/sonar/search/SearchServer.java @@ -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"); } } } |