aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-search
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2014-11-27 16:48:56 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2014-11-27 16:49:08 +0100
commita3098827a41ab7ddde67b8a90825739fce260f5e (patch)
treef8f349265647968abaa85c01bc403f54ad79d695 /server/sonar-search
parent132375889ecdcd29fa143190341fe185769c82ad (diff)
downloadsonarqube-a3098827a41ab7ddde67b8a90825739fce260f5e.tar.gz
sonarqube-a3098827a41ab7ddde67b8a90825739fce260f5e.zip
Increase timeout of ES to go to yellow status (3s -> 30s)
Diffstat (limited to 'server/sonar-search')
-rw-r--r--server/sonar-search/src/main/java/org/sonar/search/SearchServer.java2
1 files changed, 1 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 18909b942ae..7689b91f2ef 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
@@ -51,7 +51,7 @@ public class SearchServer implements Monitored {
public boolean isReady() {
return node != null && node.client().admin().cluster().prepareHealth()
.setWaitForYellowStatus()
- .setTimeout(TimeValue.timeValueSeconds(3L))
+ .setTimeout(TimeValue.timeValueSeconds(30L))
.get()
.getStatus() != ClusterHealthStatus.RED;
}