GJL commented on a change in pull request #9419: [FLINK-13599][e2e tests] Harden test_streaming_kinesis with kinesalite docker image download/run retries URL: https://github.com/apache/flink/pull/9419#discussion_r312893665
########## File path: flink-end-to-end-tests/test-scripts/common.sh ########## @@ -747,3 +747,47 @@ function retry_times() { echo "Command: ${command} failed ${retriesNumber} times." return 1 } + +################################################################################## +# Retry action until it has successfully exited and wait for condition. +# +# Globals: +# - +# Arguments: +# $1 - action to run +# $2 - boolean function to check whether the action has been successfully done +# $3 - action name for logs +# $4 - (default: 10) max number of retries to run action until passed and check done +# $5 - (default: 0) backoff delay in seconds between retry attempts +# Returns: +# Done or failed message Review comment: Not sure if it makes sense to document the return value. Technically this function also _"returns"_ _"Retry <...> after ... seconds, ..."_ so the documentation is already inaccurate. ---------------------------------------------------------------- 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