You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by tw...@apache.org on 2018/11/08 12:56:58 UTC
[flink] branch master updated: [FLINK-10361][tests][ES] Properly
wait for ES to start
This is an automated email from the ASF dual-hosted git repository.
twalthr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new d946ec5 [FLINK-10361][tests][ES] Properly wait for ES to start
d946ec5 is described below
commit d946ec5f130c4d3ffaa0e9b8d9abd35ba3224661
Author: zentol <ch...@apache.org>
AuthorDate: Thu Nov 8 13:09:22 2018 +0100
[FLINK-10361][tests][ES] Properly wait for ES to start
This closes #7057.
---
flink-end-to-end-tests/test-scripts/elasticsearch-common.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/flink-end-to-end-tests/test-scripts/elasticsearch-common.sh b/flink-end-to-end-tests/test-scripts/elasticsearch-common.sh
index 16689c8..8bb9c42 100644
--- a/flink-end-to-end-tests/test-scripts/elasticsearch-common.sh
+++ b/flink-end-to-end-tests/test-scripts/elasticsearch-common.sh
@@ -43,10 +43,10 @@ function wait_elasticsearch_working {
echo "Waiting for Elasticsearch node to work..."
for ((i=1;i<=60;i++)); do
- curl -XGET 'http://localhost:9200' || true
+ output=$(curl -XGET 'http://localhost:9200' | grep "cluster_name" || true)
# make sure the elasticsearch node is actually working
- if [ $? -ne 0 ]; then
+ if [ "${output}" = "" ]; then
sleep 1
else
echo "Elasticsearch node is working."