This is an automated email from the ASF dual-hosted git repository.

trohrmann pushed a commit to branch release-1.10
in repository https://gitbox.apache.org/repos/asf/flink.git

commit f8b0c4e4ab625c81f812a78ee2f524ac4b9498aa
Author: Yangze Guo <[email protected]>
AuthorDate: Mon Dec 30 18:45:40 2019 +0800

    [FLINK-15442] Harden the way to loop in retry_times_with_backoff_and_cleanup
---
 flink-end-to-end-tests/test-scripts/common.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/flink-end-to-end-tests/test-scripts/common.sh 
b/flink-end-to-end-tests/test-scripts/common.sh
index 67e9d9b..e23b3fe 100644
--- a/flink-end-to-end-tests/test-scripts/common.sh
+++ b/flink-end-to-end-tests/test-scripts/common.sh
@@ -748,7 +748,7 @@ function retry_times_with_backoff_and_cleanup() {
     local command="$3"
     local cleanup_command="$4"
 
-    for (( i = 0; i < ${retriesNumber}; i++ ))
+    for i in $(seq 1 ${retriesNumber})
     do
         if ${command}; then
             return 0

Reply via email to