You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ga...@apache.org on 2022/01/08 12:23:53 UTC
[flink] branch release-1.14 updated: [FLINK-25307][test] Print the curl logs is querying dispatcher startup failed
This is an automated email from the ASF dual-hosted git repository.
gaoyunhaii pushed a commit to branch release-1.14
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.14 by this push:
new ae8a4b7 [FLINK-25307][test] Print the curl logs is querying dispatcher startup failed
ae8a4b7 is described below
commit ae8a4b78814fbc09bb1630d616a8737d909d738e
Author: Yun Gao <ga...@gmail.com>
AuthorDate: Fri Jan 7 18:59:52 2022 +0800
[FLINK-25307][test] Print the curl logs is querying dispatcher startup failed
This closes #18298.
---
flink-end-to-end-tests/test-scripts/common.sh | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/flink-end-to-end-tests/test-scripts/common.sh b/flink-end-to-end-tests/test-scripts/common.sh
index 7864760..a38ffa1 100644
--- a/flink-end-to-end-tests/test-scripts/common.sh
+++ b/flink-end-to-end-tests/test-scripts/common.sh
@@ -264,15 +264,24 @@ function wait_rest_endpoint_up {
# wait at most 30 seconds until the endpoint is up
local TIMEOUT=30
for i in $(seq 1 ${TIMEOUT}); do
+ local log_file=$(mktemp)
# without the || true this would exit our script if the endpoint is not yet up
- QUERY_RESULT=$(curl ${CURL_SSL_ARGS} "$query_url" 2> /dev/null || true)
+ QUERY_RESULT=$(curl -v ${CURL_SSL_ARGS} "$query_url" 2> ${log_file} || true)
# ensure the response adapts with the successful regex
if [[ ${QUERY_RESULT} =~ ${successful_response_regex} ]]; then
echo "${endpoint_name} REST endpoint is up."
return
+ else
+ echo "***************** Curl detailed output *****************"
+ echo "QUERY_RESULT is ${QUERY_RESULT}"
+ cat ${log_file}
+ echo "********************************************************"
fi
+ # Remove the temporary file
+ rm ${log_file}
+
echo "Waiting for ${endpoint_name} REST endpoint to come up..."
sleep 1
done