[TEST] Use to wait for the node to start - it will wait for state recovery and not return 503

This commit is contained in:
Simon Willnauer 2016-03-24 11:06:20 +01:00
parent 9399f673d1
commit e4e08b28ff

View File

@ -390,7 +390,7 @@ wait_for_elasticsearch_status() {
fi
echo "Making sure elasticsearch is up..."
wget -O - --retry-connrefused --waitretry=1 --timeout=60 --tries 60 http://localhost:9200 || {
wget -O - --retry-connrefused --waitretry=1 --timeout=60 --tries 60 http://localhost:9200/_cluster/health || {
echo "Looks like elasticsearch never started. Here is its log:"
if [ -e "$ESLOG/elasticsearch.log" ]; then
cat "$ESLOG/elasticsearch.log"