[GitHub] [flink] tillrohrmann commented on a change in pull request #10668: [hotfix] Align the parameter pattern of retry_times with retry_times_…

2020-01-15 Thread GitBox
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_r366988210
 
 

 ##
 File path: flink-end-to-end-tests/test-scripts/common_yarn_docker.sh
 ##
 @@ -91,17 +91,19 @@ function start_hadoop_cluster() {
 
 function build_image() {
 echo "Building Hadoop Docker container"
-if ! retry_times $IMAGE_BUILD_RETRIES 2 docker build --build-arg 
HADOOP_VERSION=2.8.4 \
+if ! docker build --build-arg HADOOP_VERSION=2.8.4 \
 -f 
$END_TO_END_DIR/test-scripts/docker-hadoop-secure-cluster/Dockerfile \
 -t flink/docker-hadoop-secure-cluster:latest \
 $END_TO_END_DIR/test-scripts/docker-hadoop-secure-cluster/; then
-echo "ERROR: Could not build hadoop image. Aborting..."
-exit 1
+return 1
 
 Review comment:
   Same here with the if block.


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:
us...@infra.apache.org


With regards,
Apache Git Services


[GitHub] [flink] tillrohrmann commented on a change in pull request #10668: [hotfix] Align the parameter pattern of retry_times with retry_times_…

2020-01-15 Thread GitBox
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:
us...@infra.apache.org


With regards,
Apache Git Services