tillrohrmann commented on a change in pull request #10668: [hotfix] Align the 
parameter pattern of retry_times with retry_times_…
URL: https://github.com/apache/flink/pull/10668#discussion_r366988094
 
 

 ##########
 File path: flink-end-to-end-tests/test-scripts/common_mesos_docker.sh
 ##########
 @@ -63,10 +67,9 @@ function start_flink_cluster_with_mesos() {
 
 function build_image() {
     echo "Building Mesos Docker container"
-    if ! retry_times $IMAGE_BUILD_RETRIES 0 docker build -f 
$END_TO_END_DIR/test-scripts/docker-mesos-cluster/Dockerfile \
+    if ! docker build -f 
$END_TO_END_DIR/test-scripts/docker-mesos-cluster/Dockerfile \
         -t flink/docker-mesos-cluster:latest \
         $END_TO_END_DIR/test-scripts/docker-mesos-cluster/; then
-        echo "ERROR: Could not build mesos image. Aborting..."
-        exit 1
+        return 1
 
 Review comment:
   Shouldn't the `docker` command alone set a non-zero return value if 
something went wrong? So I guess the `if` block is not really needed.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to