mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 17:38:44 +00:00
[TEST] Use to wait for the node to start - it will wait for state recovery and not return 503
This commit is contained in:
parent
9399f673d1
commit
e4e08b28ff
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user