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

adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 40588150b4 HDDS-7531. Intermittent error while removing docker network 
(#5347)
40588150b4 is described below

commit 40588150b4cb36a4c355cb44246a4a8a856f9473
Author: Galsza <[email protected]>
AuthorDate: Sat Sep 23 11:19:29 2023 +0200

    HDDS-7531. Intermittent error while removing docker network (#5347)
---
 hadoop-ozone/dist/src/main/compose/testlib.sh | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/hadoop-ozone/dist/src/main/compose/testlib.sh 
b/hadoop-ozone/dist/src/main/compose/testlib.sh
index b0d2ed50b8..e34c21c27a 100755
--- a/hadoop-ozone/dist/src/main/compose/testlib.sh
+++ b/hadoop-ozone/dist/src/main/compose/testlib.sh
@@ -337,8 +337,17 @@ stop_docker_env(){
   copy_daemon_logs
   save_container_logs
   if [ "${KEEP_RUNNING:-false}" = false ]; then
-     docker-compose --ansi never down
+    down_repeats=3
+    for i in $(seq 1 $down_repeats)
+    do
+      if docker-compose --ansi never down; then
+        return
+      fi
+      sleep 5
+    done
   fi
+  echo "Failed to remove all docker containers in $down_repeats attempts."
+  return 1
 }
 
 ## @description  Removes the given docker images if configured not to keep 
them (via KEEP_IMAGE=false)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to