XComp commented on code in PR #23528:
URL: https://github.com/apache/flink/pull/23528#discussion_r1371438755


##########
flink-end-to-end-tests/test-scripts/common_kubernetes.sh:
##########
@@ -87,6 +89,42 @@ function setup_kubernetes_for_linux {
     sudo sysctl fs.protected_regular=0
 }
 
+function retry_times_with_download {

Review Comment:
   I was thinking about something like that:
   ```bash
   function retry_times_with_download {
       if [[ "$#" != 1 ]]; then
          echo "Fatal error: No parameter or too many parameters passed: $@"
          exit 1;
       fi
   
       local download_url="$1"
       if ! retry_times ${RETRY_COUNT} ${RETRY_BACKOFF_TIME} "wget -nv 
${download_url}"; then
         echo "ERROR: Download failed repeatedly after ${RETRY_COUNT} tries. 
Aborting..."
         exit 1
       fi
   }
   ```



-- 
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.

To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to