diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2020-01-09 16:40:04 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-11-05 20:06:21 +0000 |
commit | eef81386c2ad2756cdb7a493d84f423ff7596e0f (patch) | |
tree | 1dbadcbac01ac688cc4ef2def05847948ac3d4e8 /server/sonar-main | |
parent | c501961bff6b7407bdb98b3949f6c133096dfaee (diff) | |
download | sonarqube-eef81386c2ad2756cdb7a493d84f423ff7596e0f.tar.gz sonarqube-eef81386c2ad2756cdb7a493d84f423ff7596e0f.zip |
SONAR-12686 add mandatory cluster configuration property cluster.initial_master_nodes
ES 7.5.1 refuses to start without this option
Diffstat (limited to 'server/sonar-main')
-rw-r--r-- | server/sonar-main/src/main/java/org/sonar/application/es/EsSettings.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/sonar-main/src/main/java/org/sonar/application/es/EsSettings.java b/server/sonar-main/src/main/java/org/sonar/application/es/EsSettings.java index a867b3df408..a8191531978 100644 --- a/server/sonar-main/src/main/java/org/sonar/application/es/EsSettings.java +++ b/server/sonar-main/src/main/java/org/sonar/application/es/EsSettings.java @@ -136,6 +136,7 @@ public class EsSettings { String hosts = props.value(CLUSTER_SEARCH_HOSTS.getKey(), ""); LOGGER.info("Elasticsearch cluster enabled. Connect to hosts [{}]", hosts); builder.put("discovery.zen.ping.unicast.hosts", hosts); + builder.put("cluster.initial_master_nodes", hosts); } builder.put("discovery.zen.minimum_master_nodes", valueOf(minimumMasterNodes)); |