You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/02/04 02:31:01 UTC

[GitHub] [flink] KarmaGYZ commented on a change in pull request #10746: [FLINK-15417] Remove the docker volume or mount when starting Mesos e…

KarmaGYZ commented on a change in pull request #10746: [FLINK-15417] Remove the docker volume or mount when starting Mesos e…
URL: https://github.com/apache/flink/pull/10746#discussion_r374446383
 
 

 ##########
 File path: flink-end-to-end-tests/test-scripts/common_mesos_docker.sh
 ##########
 @@ -72,7 +73,25 @@ function build_image() {
 function wait_job_terminal_state_mesos {
   local job=$1
   local expected_terminal_state=$2
-  wait_job_terminal_state $1 $2 "mesos-appmaster"
+  local successful_response_regex="\{.*\"application-status\":\"${expected_terminal_state}\".*\}"
+  local query_url="${REST_PROTOCOL}://${NODENAME}:8081/jobs/${job}/execution-result"
+  local TIMEOUT=120
+
+  echo "Waiting for job ($job) to reach terminal state $expected_terminal_state ..."
+
+  for i in $(seq 1 ${TIMEOUT}); do
+    QUERY_RESULT=$(curl "$query_url" 2> /dev/null || true)
+    # ensure the response adapts with the suceessful regex
 
 Review comment:
   Yes, it is. I create FLINK-15870 to track this. FYI.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services